Spatial Resampling Infrastructure
Overview
Functions and classes for spatial resampling to use with the 'rsample' package, such as spatial cross-validation (Brenning, 2012) doi:10.1109/IGARSS.2012.6352393. The scope of 'rsample' and 'spatialsample' is to provide the basic building blocks for creating and analyzing resamples of a spatial data set, but neither package includes functions for modeling or computing statistics. The resampled spatial data sets created by 'spatialsample' do not contain much overhead in memory.
- Minor update to follow update in rsample and testthat. No user-facing impacts.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 10 (4 internal)includes a package overview page
- Examples that run
- 100%5 run in a plain check (3 of them under a condition)
- Exported functions with examples
- 80%
- Documented parameters
- 94%
- Return-value docs
- 60%
- Help pages citing references
- 40%
Downloads
Repository
- PRs merged (all time)
- 94%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
17 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/tidymodels/spatialsample 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-07-06 · The repository has a site deploy workflow
pkgdown site last built 2024-10-02, before release 0.6.1 (2025-12-02)
Show all practicesHide 3 practices
Dependencies
Installing spatialsample adds 47 packages (27 with compiled code, 49 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.
Code & Tests
Datasets
People & History
Previously maintained by Julia Silge (0.1.0 to 0.2.0).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.6.1Latest
- RR 4.5.0 released · 2025-04-11
- 0.6.02024-10-02 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.5.12023-11-08 · diff ↗
- 0.5.0
- 0.4.0
- RR 4.3.0 released · 2023-04-21
- 0.3.02023-01-17 · diff ↗
- 0.2.12022-08-06 · diff ↗
- 0.2.02022-06-17 · diff ↗ ·
removed 1 export
pretty.spatial_clustering_cvadded 4 exports
autoplot, spatial_block_cv, spatial_buffer_vfold_cv, spatial_leave_location_out_cv - RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.1.02021-03-04
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-03-04
- Total releases
- 9 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.6
- Bundled data
- 0.1 KB / 1 file
- Download size
- 3.7 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("spatialsample")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.48550/arxiv.2303.07334.
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.