Skip to content

Releases: reconverse/grates

v1.4.0

17 Jan 21:49
v1.4.0
2cc2ef9
Compare
Choose a tag to compare

The format argument of the scale functions for <grates_yearweek>, <grates_epiweek> and <grates_isoweek> can now be set to "week" to drop the year value from graph labels, i.e.

plot + scale_x_grates_epiweek(format = "week")

v1.3.0

20 Nov 09:57
v1.3.0
96ba740
Compare
Choose a tag to compare

This release (re)introduces the <grates_int_period> object and associated scale function. This functionality should be viewed as experimental and is marked as such in the documentation.

grates 1.2.2

29 Aug 16:38
v1.2.2
f5596ef
Compare
Choose a tag to compare
  • All images in the vignette now have alt text.
  • Minor documentation improvements.

grates 1.2.1

31 May 10:32
v1.2.1
92063e3
Compare
Choose a tag to compare

Predominantly internal changes save for the explicit dependency on R (>= 3.6.0).

grates 1.2.0

08 Mar 12:45
Compare
Choose a tag to compare
  • New functions date_start() and date_end() for accessing the boundary elements of <grates> objects.

  • New function %during% for testing whether a scalar date is contained within the range (inclusive) of a <grates> object.

grates 1.1.1

28 Feb 11:36
Compare
Choose a tag to compare
  • Users of the 3.5.0 release of ggplot2 will have noticed some additional "warnings" appearing within the plot. These have now been handled internally so please raise an issue if they reappear.
  • Minor internal and non-breaking changes motivated by lintr.

grates 1.1.0

08 Jun 23:15
Compare
Choose a tag to compare
  • The scale functions (e.g. scale_x_grates_isoweek()) gain a breaks
    argument to allow exact specification of breaks.

grates 1.0.1

03 Apr 11:28
Compare
Choose a tag to compare
  • No user facing changes.
  • Fix erroneous tests flagged by CRAN.

grates 1.0.0

17 Mar 14:18
Compare
Choose a tag to compare

For the first major release of grates a significant refactor has been undertaken
that builds upon lessons learnt over the last two years. Whilst we have tried to
limit breaking changes some functionality has been removed and some function
parameters altered (see details below):

breaking changes

  • <grates_month> objects are now always stored relative to the UNIX epoch.
    This is equivalent to setting origin = 0 in the previous release. Calling
    the function with an origin argument will now error.

  • Trying to create a <grates_month> object with n set to 1 will now error.
    Uses are encouraged to use <grates_yearmonth> for this case.

  • <grates_int_period> is now a defunct as it did not fit with the scope of the
    package (i.e grouped dates, not grouped integers). In particular the
    int_period(), as_int_period() and is_int_period() will now error on use.

  • The origin parameter from <grates_period> as been renamed to offset to
    better reflect its usage. Users will need to update uses of period(),
    as_period() and scale_x_grates_period() to reflect this.

  • as_yearweek() no longer parsers character strings of the form "YYYY-Www"
    (e.g. "2020-W01").

  • Constructors yearweek() and isoweek() and epiweek() now
    allow construction of grates objects directly from year and week integer
    vectors. yearmonth() and yearquarter() constructors have been similarly
    changed to allow construction from year and month/quarter integer vectors.

  • The old incarnation of direct constructors now begin with a new_ prefix
    (e.g. new_month(), new_yearweek(), new_epiweek(), ...). This is to
    distinguish them from more user friendly constructors that we have introduced
    (see above).

new functions and classes

  • A new yearmonth class (<grates_yearmonth>) and associated functions have
    been introduced. This object is similar to what was previously obtained via a
    call of month(x, n = 1L, origin = 0L) (now defunct - see above).

  • New isoweek and epiweek classes (<grates_isoweek> and
    <grates_epiweek> respectively) and associated functions. Internally these
    are similar to the corresponding <grates_yearweek> objects but with a
    marginally more efficient implementation.

bug fixes

  • is.numeric() methods for grates objects previously returned FALSE. Calls to
    these methods now dispatch to the default implementation based on the
    underlying type and should now return TRUE.

miscellaneous

  • Hard dependencies on clock and
    vctrs have now been removed.

grates 0.3.1

10 Nov 11:09
Compare
Choose a tag to compare

Fix for changes made to POSIXlt objects in R-devel.