Nothing
This patch fixes a malfunctioning test that was causing CRAN checks to fail. There are no significant changes.
621.5394
instead of 622
.621.2218
instead of 622
.this_year()
now considers the current date, returns a floored integer (i.e. the actual current calendar year), and is vectorised over era
.era
(#33) and era_year
(#34) in tibblesera()
and yr()
now return a zero-length vector when called with no arguments (instead of an error), allowing them to be used as prototypesera_yr
objects can now be cast to character vectors (e.g. as.character(yr(1, "BP"))
)c()
now triggers a warning (#27), consistent with combining them using arithmetic (#3)era
package no longer exports magrittr
's pipe operator (%>%
)CRAN release.
Second beta / CRAN pre-release.
era_year
class, which describes its length in solar days as well as its name. Added functions for constructing and working with era_year
objects: era_year()
, is_era_year()
, era_year_label()
, era_year_days()
.1
("forwards") or -1
("backwards"). The previous character arguments still work but are deprecated.yr(1, "BP") + yr(1, "cal BP")
now works (with a warning) (#3).yr_transform()
:precision
argument, allowing the result to be rounded (#23).era
and yr
objects are now validated when constructed, using new functions validate_era()
/is_valid_era()
and validate_yr()
/is_valid_yr()
(#7 and #8).this_year()
, which returns the current year as a yr
object.era(NA)
now returns an error, not a vector of all standard eras (#20).era
arguments in functions can now accept a character vector (#20)era(<era>)
now returns an era with the same parameters (to enable the above)First beta release, including:
yr
(era_yr
) representing years with an erayr()
constructoryr
object: yr_era()
, yr_era()<-
and yr_set_era()
yr
syr
sera
representing an era definitionera()
constructorera
sera_label()
, era_name()
, era_epoch()
, era_unit()
, era_scale()
, era_direction()
eras()
defining standard erasyr_transform()
function for converting years between erasvignette("era")
NEWS.md
file to track changes to the package.Initial development version.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.