Fixed tests that failed under valgrind due to
Bumped required versions of vctrs, cli, and rlang to their current CRAN versions.
Bumped required R version to >= 3.6.0.
CRAN release: 2022-11-16
.i) types that aren’t explicitly understood by vctrs are now handled slightly better (#182).
slider_minus()developer facing helpers that allow package authors to register custom double dispatch methods to override the default computation of
.i - .beforeand
.i + .afterwhen generating index bounds internally. This is intended to allow the clock and almanac packages to register methods so their custom types can be used natively in slider (#91).
Removed ellipsis in favor of using the equivalent functions in rlang (#185).
R_forceAndCall()fallback now that R >=3.4.0 is required (#172).
-Wstrict-prototypeswarnings as requested by CRAN (#173).
Bumped minimal version of R to >=3.4.0 to align with tidyverse standards.
Fixed redirecting URLs.
CRAN release: 2021-07-01
CRAN release: 2021-03-23
CRAN release: 2021-03-18
New family of very fast specialized sliding functions:
slide_index_*()family now allows
.afterto be functions of 1 argument (the index) that compute the boundaries of the sliding window. This can be extremely useful when the default, which computes
.i - .beforeand
.i + .after, is not applicable or correct for your needs. One use case is to set
.before = ~.x %m-% months(1)rather than
.before = months(1)to perform a 1 month rolling window in a way that won’t generate
NAvalues on invalid dates (like 1 month before 2019-03-31) (#139).
slide_index_*()family has undergone some internal changes to make it more compatible with custom vctrs classes that could be provided as the index (
.i), such as the date-time classes in the clock package (#133, #130).
slide_index_*()family, it is now required that
.i - .beforeand
.i + .afterbe castable to
vctrs::vec_cast(). Similarly, for the
.stopsmust both be castable to
vignette("rowwise")has been updated to use
cur_data()from dplyr 1.0.0, which makes it significantly easier to do rolling operations on data frames (like rolling regressions) using slider in a dplyr pipeline.
CRAN release: 2020-07-21
Better error messages for
.completehave been added (#110).
A few instances of possibly unsafe C protection usage have been fixed (#112).
CRAN release: 2020-05-28
As a followup to a change in slider 0.1.3, edge cases with size zero input in
hop()have also been fixed.
C code has been refactored to be less reliant on vctrs internals.
CRAN release: 2020-05-14
Updated to stay compatible with vctrs 0.3.0.
A few edge cases with size zero input in the index functions have been fixed.
hop()and its variants no longer place the names of
.xon the output. Because there is no size guarantee on the output, the size of
.xcan be different than the size of the output, meaning that the names might not line up. This also affects
slide_period(), which is implemented using a
With data frames containing row names,
slide()and its variants now copy those row names onto the output. This is an implicit benefit from vctrs gaining better support for data frame row names.
CRAN release: 2020-02-23
- Fixed a “multiple definition” C issue when compiling with gcc10.