General Resampling Infrastructure
Overview
Classes and functions to create and summarize different types of resampling objects (e.g. bootstrap, cross-validation).
.get_split_args()now works with rset objects created by functions from spatialsample without requiring the package to be attached (#599).- The
lagargument forinitial_time_split()has been soft deprecated (@bjornkallerud, #592). - The example for
group_vfold_cv()has been updated to use current dplyr functions (#597).
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: rsample/tests/testthat/test-caret.R (.Names: 30) rsample/tests/testthat/test-make_strata.R (.Dim: 1, .Dimnames: 1) '.Names' should be changed to 'names'. '.Dim' should be changed to 'dim'. '.Dimnames' should be changed to 'dimnames'.
NOTEdependencies in R coder-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Base packages in Suggests/Enhances imported in NAMESPACE: ‘stats’ ‘utils’
r-devel-windows-x86_64
Base packages in Suggests/Enhances imported in NAMESPACE: 'stats' 'utils'
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 43 (7 internal)includes a package overview page
- Examples that run
- 94%33 run in a plain check (13 of them under a condition) · 2 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 86%
- Documented parameters
- 99%
- Return-value docs
- 86%
- Help pages citing references
- 5%
Downloads
Repository
- PRs merged (all time)
- 94%
- Median days to close, 50 most recently updated closed issues
- 50
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
16 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/tidymodels/rsample on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-17 · The repository has a site deploy workflow
pkgdown site last built 2026-01-30
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-01-29Seen in the repository: .claude, .claude/skillsNamed in .Rbuildignore: .claude
Dependencies
Installing rsample adds 28 packages (16 with compiled code, 20 MB of source tarballs). Heaviest: stringi 11 MB, vctrs 1.0 MB, dplyr 902 KB.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 1 more dependent and 45 packages that suggest it on CRAN ↗
Code & Tests
People & History
Previously maintained by Julia Silge (0.0.9 to 1.1.0) and Max Kuhn (0.0.1 to 0.0.8).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.3.2Latest
- 1.3.12025-07-29 · diff ↗ ·
removed 1 export
inner_splitadded 2 exports
calibration, internal_calibration_split - RR 4.5.0 released · 2025-04-11
- 1.3.0
- RR 4.4.0 released · 2024-04-24
- 1.2.12024-03-25 · diff ↗
- 1.2.02023-08-23 · diff ↗ ·
removed 1 export
gatheradded 5 exports
group_initial_validation_split, initial_validation_split, initial_validation_time_split, validation, validation_set - RR 4.3.0 released · 2023-04-21
- 1.1.1
- 1.1.02022-08-08 · diff ↗ ·
added 6 exports
group_bootstraps, group_initial_split, group_mc_cv, group_validation_split, reshuffle_rset, reverse_splits - 1.0.02022-06-24 · diff ↗ ·
removed 15 exports
gather.rset, pretty.apparent, pretty.bootstraps, pretty.group_vfold_cv, pretty.loo_cv, pretty.manual_rset, pretty.mc_cv, pretty.nested_cv, pretty.permutations, pretty.rolling_origin, pretty.sliding_index, pretty.sliding_period, pretty.sliding_window, pretty.validation_split, pretty.vfold_cv - RR 4.2.0 released · 2022-04-22
- 0.1.1
- RR 4.1.0 released · 2021-05-18
- 0.1.02021-05-08 · diff ↗
Show 13 earlier eventsHide 13 earlier events
- 0.0.92021-02-17 · diff ↗ ·
added 14 exports
.get_fingerprint, all_of, any_of, contains, ends_with, everything, last_col, matches, num_range, permutations, pretty.permutations, reg_intervals, rset_reconstruct, starts_with - 0.0.82020-09-23 · diff ↗ ·
added 8 exports
manual_rset, pretty.manual_rset, pretty.sliding_index, pretty.sliding_period, pretty.sliding_window, sliding_index, sliding_period, sliding_window - 0.0.72020-06-04 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.0.62020-03-31 · diff ↗ ·
added 5 exports
gather, make_splits, new_rset, pretty.validation_split, validation_split - 0.0.5
- RR 3.6.0 released · 2019-04-26
- 0.0.4
- 0.0.3
- RR 3.5.0 released · 2018-04-23
- 0.0.22017-11-12 · diff ↗ ·
added 17 exports
caret2rsample, form_pred, gather.rset, group_vfold_cv, initial_split, prepper, pretty.apparent, pretty.bootstraps, pretty.group_vfold_cv, pretty.loo_cv, pretty.mc_cv, pretty.nested_cv, pretty.rolling_origin, pretty.vfold_cv, rsample2caret, testing, training - 0.0.12017-07-08
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-07-08
- Total releases
- 19 / 9 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL-2 in 0.1.0
- Minimum R
- ≥ 4.1
- Download size
- 1.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rsample")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.