Skip to content

spatialsample

0.6.1Package record

Spatial Resampling Infrastructure

3packages dependsuggested by 1
43.7Kdownloads / year
91.7%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.6.1
  • Minor update to follow update in rsample and testthat. No user-facing impacts.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 11.9 min · r-devel-linux-x86_64-debian-clang
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.6.1
READMEYes · 333 wordsVignettesYes · 1 · evaluation depends on the environmentNEWSYes · 100% structured · mentions 0.6.1Citation fileYes · software entry onlyWebsiteYes · pkgdown

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

43.7K
CRAN downloads in the past year
Rank #2,365 · ~120/day · ~3.6K/mo
Daily download trend is not available in this view yet.
2.2K30 days
6.9K90 days
43.7K1 year
Compare downloads with other packages →
Also on539 r2u6 autocran1.6K conda_forge132 c2d4u

Repository

81Stars
6Forks
4Open issues
0Open PRs
8Releases
160Commits
5Commit identities
160 commits · Last activity 2026-07-06 · +1.3% stars, 30d · The default branch showed an older version (0.6.0.9000) than CRAN on 2026-10-11
Responsiveness
How these are sampled
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

2025-09-09 · 752026-10-17 · 81
PracticesBeta

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.

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-07-06 · The repository has a site deploy workflow

pkgdown site last built 2024-10-02, before release 0.6.1 (2025-12-02)

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
data-raw/
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)

Dependencies

Declared dependencies
24 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.6
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
3direct
1indirect
Depends 1 · Imports 2
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (3)
Author, Maintainer since 0.2.1 (2022) · added in 0.2.0
Copyright holder, Funder · added in 0.4.0

Previously maintained by Julia Silge (0.1.0 to 0.2.0).

Listed in earlier versions (1)
RStudio
no longer listed · 0.1.0 to 0.3.0
Releases (9)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.6.1Latest
    record
    2025-12-02 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.6.0
    record
    2024-10-02 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.5.1
    record
    2023-11-08 · diff ↗
  • 0.5.0
    record
    2023-11-03 · diff ↗ ·
    added 1 export
    get_rsplit
  • 0.4.0
    record
    2023-05-17 · diff ↗ ·
    added 1 export
    spatial_nndm_cv
  • R
    R 4.3.0 released · 2023-04-21
  • 0.3.0
    record
    2023-01-17 · diff ↗
  • 0.2.1
    record
    2022-08-06 · diff ↗
  • 0.2.0
    record
    2022-06-17 · diff ↗ ·
    removed 1 export
    pretty.spatial_clustering_cv
    added 4 exports
    autoplot, spatial_block_cv, spatial_buffer_vfold_cv, spatial_leave_location_out_cv
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.0
    record
    2021-03-04
  • R
    R 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
Appears in task views

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for spatialsample version 0.6.1 [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