CITATION.cff file with software citation metadata (#49)yr_sort() function for chronological ordering of year vectors (#44)yr_earliest(), yr_latest(), and yr_range() functions for chronological extremes of year vectors (#43)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():
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 era
yr() constructoryr object: yr_era(), yr_era()<- and yr_set_era()yrsyrsera representing an era definition
era() constructorerasera_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.