Skip to content

rsample

1.3.2Package record

General Resampling Infrastructure

49packages dependsuggested by 45
730.6Kdownloads / year
88.6%test coverage
8/13flavors OK

Overview

About

Classes and functions to create and summarize different types of resampling objects (e.g. bootstrap, cross-validation).

Changes in 1.3.2
  • .get_split_args() now works with rset objects created by functions from spatialsample without requiring the package to be attached (#599).
  • The lag argument for initial_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

CRAN checks
5NOTE8OK
Check messages
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'

CRAN check page ↗

Slowest check: 6.9 min · r-oldrel-macos-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.3.2
READMEYes · 312 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 1.3.2Citation fileNoWebsiteYes · pkgdown
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

730.6K
CRAN downloads in the past year
Rank #493 · ~2K/day · ~60.9K/mo
Daily download trend is not available in this view yet.
52.2K30 days
151.5K90 days
730.6K1 year
Compare downloads with other packages →
Also on18.3K r2u5 autocran44.2K conda_forge347 c2d4u

Repository

343Stars
68Forks
38Open issues
3Open PRs
15Releases
1,100Commits
49Commit identities
1,100 commits · Last activity 2026-09-17 · 0% stars, 30d · Default branch at 1.3.2.9000, ahead of CRAN 1.3.2 (checked 2026-10-11)
Responsiveness
How these are sampled
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

2026-07-14 · 3412026-08-21 · 343
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (3)
Code of conductContributing guideCODEOWNERS
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-09-17 · The repository has a site deploy workflow

pkgdown site last built 2026-01-30

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 2 practices
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (4)
Lint workflowAirVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-01-29
    Seen in the repository: .claude, .claude/skills
    Named in .Rbuildignore: .claude
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
25 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none

People & History

People (7)
Author, Maintainer since 1.1.1 (2022) · added in 1.1.1
Author · added in 0.0.5
Author
Author · added in 1.1.1
Author · added in 0.0.9
Copyright holder, Funder · added in 1.1.1

Previously maintained by Julia Silge (0.0.9 to 1.1.0) and Max Kuhn (0.0.1 to 0.0.8).

Listed in earlier versions (1)
RStudio
no longer listed · 0.0.1 to 1.1.0
Releases (19)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.3.2Latest
    record
    2026-01-30 · current release · diff ↗
  • 1.3.1
    record
    2025-07-29 · diff ↗ ·
    removed 1 export
    inner_split
    added 2 exports
    calibration, internal_calibration_split
  • R
    R 4.5.0 released · 2025-04-11
  • 1.3.0
    record
    2025-04-02 · diff ↗ ·
    added 2 exports
    .get_split_args, inner_split
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.1
    record
    2024-03-25 · diff ↗
  • 1.2.0
    record
    2023-08-23 · diff ↗ ·
    removed 1 export
    gather
    added 5 exports
    group_initial_validation_split, initial_validation_split, initial_validation_time_split, validation, validation_set
  • R
    R 4.3.0 released · 2023-04-21
  • 1.1.1
    record
    2022-12-07 · diff ↗ ·
    added 2 exports
    clustering_cv, get_rsplit
  • 1.1.0
    record
    2022-08-08 · diff ↗ ·
    added 6 exports
    group_bootstraps, group_initial_split, group_mc_cv, group_validation_split, reshuffle_rset, reverse_splits
  • 1.0.0
    record
    2022-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
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.1
    record
    2021-11-08 · diff ↗ ·
    added 1 export
    validation_time_split
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.0
    record
    2021-05-08 · diff ↗
Show 13 earlier eventsHide 13 earlier events
  • 0.0.9
    record
    2021-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.8
    record
    2020-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.7
    record
    2020-06-04 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.0.6
    record
    2020-03-31 · diff ↗ ·
    added 5 exports
    gather, make_splits, new_rset, pretty.validation_split, validation_split
  • 0.0.5
    record
    2019-07-13 · diff ↗ ·
    added 4 exports
    add_resample_id, int_bca, int_pctl, int_t
  • R
    R 3.6.0 released · 2019-04-26
  • 0.0.4
    record
    2019-01-07 · diff ↗ ·
    removed 1 export
    fill
  • 0.0.3
    record
    2018-11-20 · diff ↗ ·
    removed 1 export
    prepper
    added 3 exports
    initial_time_split, populate, tidy
  • R
    R 3.5.0 released · 2018-04-23
  • 0.0.2
    record
    2017-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.1
    record
    2017-07-08
  • R
    R 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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("rsample")
Frick, H., Posit Software, PBC, Chow, F., Kuhn, M., Mahoney, M., Silge, J., & Wickham, H. (2026). rsample: General Resampling Infrastructure (Version 1.3.2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for rsample version 1.3.2 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy