theRefdate 1.1.0

New: date format (“flavour”) can be chosen once per session

Unchanged: results without setFlavour()

If setFlavour() is never called, the package works in the format "DD.MM.YYYY" and returns the same results as version 1.0.0 for every valid input (day, month and year in the format, years 1000 to 9998, whole months). A test (tests/testthat/test-kompatibel-1.0.0.R) compares the results with values produced by the version published on CRAN.

Changed: errors instead of NA and instead of nonsense results

Version 1.0.0 answered invalid input with NA or with a malformed string. Version 1.1.0 stops with an error message that names the argument, its class and value, and the expected format.

Changed: output format of dateAddMonths()

Documentation

theRefdate 1.0.0