anytime is a very focused package aiming to do just one thing really well: to convert anything in integer, numeric, character, factor, ordered, ... format to either POSIXct or Date objects -- and to do so without requiring a format string. See the anytime page, or the GitHub README.md for a few examples.
This release brings a little more consistency to how numeric or integer arguments are handled. Previously, we were overly eager in accepting something such as 20150605 (i.e. today) as a (numerical or integer) input to both
anydate(). That is well-intentioned, but ultimately foolish. We relied on heuristic cutoffs to determine whether input was "meant to be" a date or time offset. There lies madness. We now differentiate whether we were called via
anytime() (in which case numerical data is second offset to the epoch, just
anytime() (in which case it is days offset to the (date) epoch, just like
as.Date()). The previous behaviour can be restored via a options, both function-local as well as global are supported. And of course, there is no change for all other (and more common) input formats, notably
factor. A full list of changes follows.
Changes in anytime version 0.3.0 (2017-06-05)
Old behaviour can be re-enabled with an option also supporting a global setting
RStudio versions 1.1.129 or later can run all functions without fear of crashing due to a change in their use of Boost.
init.cwith registration code inside of
RcppExports.cppthanks to Rcpp 0.12.11.