This patch fixes a malfunctioning test that was causing CRAN checks to fail. There are no significant changes.
this_year()now considers the current date, returns a floored integer (i.e. the actual current calendar year), and is vectorised over
era_year(#34) in tibbles
yr()now return a zero-length vector when called with no arguments (instead of an error), allowing them to be used as prototypes
era_yrobjects can now be cast to character vectors (e.g.
c()now triggers a warning (#27), consistent with combining them using arithmetic (#3)
erapackage no longer exports
magrittr’s pipe operator (
Second beta / CRAN pre-release.
era_yearclass, which describes its length in solar days as well as its name. Added functions for constructing and working with
-1(“backwards”). The previous character arguments still work but are deprecated.
yr(1, "BP") + yr(1, "cal BP")now works (with a warning) (#3).
yrobjects are now validated when constructed, using new functions
is_valid_yr()(#7 and #8).
this_year(), which returns the current year as a
era(NA)now returns an error, not a vector of all standard eras (#20).
eraarguments 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:
era_yr) representing years with an era
erarepresenting an era definition
yr_transform()function for converting years between eras
NEWS.mdfile to track changes to the package.