slider
Sliding Window Functions. Contribute to r-lib/slider development by creating an account on GitHub.
Feature-complete since 2021, and every release since has been paying CRAN's C API bill
◆Recent moves
- 9mo ago
Non-API OBJECT() removed and a vctrs C signature fixed
Corrects a C-level function signature for a vctrs callable and removes the last use of the non-API OBJECT() macro. Both are internal; nothing about how slider behaves changes, but the OBJECT() removal is the second instalment of the same CRAN compliance work that drove 0.3.2.
View source ↗ - 1y ago
Non-API STRING_PTR removed; R 4.0.0 now required
Drops the non-API STRING_PTR accessor and raises the minimum R version to 4.0.0 in line with tidyverse policy. The version floor is the user-visible part — anyone on older R stops receiving updates here — while the accessor removal is invisible groundwork against CRAN's tightening C API rules.
View source ↗ - 2y ago
Valgrind test fixes and dependency version bumps
Fixes tests that failed under valgrind on NA versus NaN handling and bumps required versions of vctrs, cli, rlang and R. Toolchain maintenance with no behavioural change.
View source ↗ - 3y ago
Extension hooks let clock and almanac types serve as an index
The last release with a genuine addition: slider_plus() and slider_minus() let package authors register double-dispatch methods that override how index bounds are computed, which is what allows clock and almanac types to be used as an index natively rather than being coerced first. Error messages move from glue to cli, and the index families switch to vctrs::vec_rank() for a faster dense rank.
View source ↗ - 5y ago
Internal vec_order usage updated ahead of a vctrs break
Updates internal vec_order() usage ahead of a breaking change in vctrs. Defensive maintenance released before the upstream break landed — a recurring shape in this feed.
View source ↗ - 5y ago
long double alignment issue fixed for CRAN sanitisers
Fixes a C alignment issue with long double allocation flagged by CRAN's sanitiser machine, plus a test that assumed a fixed size for that type. Platform-portability repair in the C layer.
View source ↗