Skip to content

slider

Sliding Window Functions

v0.3.3 · Nov 14, 2025 · MIT + file LICENSE

Description

Provides type-stable rolling window functions over any R data type. Cumulative and expanding windows are also supported. For more advanced usage, an index can be used as a secondary vector that defines how sliding windows are to be created.

Downloads

CRAN

55.9K

Last 30 days

471st

198K

Last 90 days

830.4K

Last year

Trend: -20.1% (30d vs prior 30d)

r2u CRAN

1.5K

Last 30 days

4.3K

Last 90 days

20K

Last year

Trend: +1.7% (30d vs prior 30d)

autoCRAN

2

Last 7 days

14

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

3.5K

Last 30 days

11.7K

Last 90 days

47K

Last year

Trend: -13.7% (30d vs prior 30d)

CRAN Check Status

1 NOTE
12 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (1 non-OK)
NOTE r-oldrel-macos-arm64

compiled code

File ‘slider/libs/slider.so’:
  Found non-API call to R: ‘OBJECT’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.

Check History

NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-release-macos-arm64

compiled code

File ‘slider/libs/slider.so’:
  Found non-API call to R: ‘OBJECT’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.

Code

Structure

Lines of code

24,649

Files

164

Compiled share

17.2%

Has compiled src

Yes

Language breakdown

R 5,974 (24.2%)C/C++/src 4,241 (17.2%)Tests 10,625 (43.1%)Docs 3,199 (13%)Vignettes 610 (2.5%)

API

Exported functions

101

Internal functions

91

Recent export changes

v0.3.0+2 slider_minus, slider_plus

Testing & CI

Has tests

Yes

Test-to-code ratio

1.78

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

75%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.0.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

13

First release

2020-02-06

Latest release

2025-11-14

Avg cadence

83 days

Cold removal rate

Dep drift

4

LOC over versions

v0.1.0: 14,437 LOCv0.1.1: 14,437 LOCv0.1.2: 14,353 LOCv0.1.3: 14,667 LOCv0.1.4: 14,842 LOCv0.1.5: 14,889 LOCv0.2.0: 19,639 LOCv0.2.1: 19,774 LOCv0.2.2: 19,774 LOCv0.3.0: 22,257 LOCv0.3.1: 22,258 LOCv0.3.2: 22,288 LOCv0.3.3: 24,649 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (25)

Dependency Network

Dependencies Reverse dependencies cli rlang vctrs warp LightLogR SeaSondeR activatr epiviz feasts openNCAI resquin rsample shewhartr sits streamsampler tidier tidyfinance timetk tscv +10 more reverse deps slider

Version History

14 tracked
new 0.3.3 Mar 10, 2026
updated 0.3.3 ← 0.3.2 diff Nov 13, 2025
updated 0.3.2 ← 0.3.1 diff Oct 24, 2024
updated 0.3.1 ← 0.3.0 diff Oct 11, 2023
updated 0.3.0 ← 0.2.2 diff Nov 15, 2022
updated 0.2.2 ← 0.2.1 diff Jun 30, 2021
updated 0.2.1 ← 0.2.0 diff Mar 22, 2021
updated 0.2.0 ← 0.1.5 diff Mar 17, 2021
updated 0.1.5 ← 0.1.4 diff Jul 20, 2020
updated 0.1.4 ← 0.1.3 diff May 27, 2020
updated 0.1.3 ← 0.1.2 diff May 13, 2020
updated 0.1.2 ← 0.1.1 diff Mar 9, 2020
updated 0.1.1 ← 0.1.0 diff Feb 22, 2020
new 0.1.0 Feb 5, 2020