Skip to content

spatialsample

0.6.1

Spatial Resampling Infrastructure

4packages depend
41.8Kdownloads / year
91.7%test coverage
13/13checks pass

Overview

About
Maintained by Michael MahoneyFirst published 2021-03-049 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 16.5 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 20.54
91.7%
Coverage · measured lines
100%
Documentation · exports
12
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 333 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
94%
Return-value docs
60%
References docs
40%

Downloads

41.8K
CRAN downloads in the past year
Rank #2,306 · ~115/day · ~3.5K/mo
Daily download trend is not available in this view yet.
1.8K30 days
10K90 days
41.8K1 year
Compare downloads with other packages →
Also on570 r2u26 autocran1.6K conda_forge78 c2d4u

Repository

Repository
78Stars
6Forks
4Open issues
0Open PRs
8Releases
160Commits
5Contributors
160 commits · Last activity 2026-07-06 · 0% stars, 30d

Stars over time

2025-04-28 · 742026-07-07 · 78

Repository practices

Upstream repositoryBeta

10 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/tidymodels/spatialsample on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (3)
AirVS CodeRStudio project
Coverage (1)
Codecov
Governance and community (1)
CODEOWNERS
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
24 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
4direct
1indirect

Code & Tests

Code Composition
R 4,197 (69%)Markdown 985 (16%)Rd 626 (10%)Vignettes 182 (3%)C++ 61 (1%)
Code characteristics
Object systems
S366
Cyclomatic complexity
1.0 median / 13 max
Test cases
90 / 20.54 per code line

Test coverage

Line coverage

92%

Expression

89.1%

Tests / Examples

91.7% / 64% ex

Functions

103 5 exported

Complexity

1.8 avg / 13 max

Call network

103 nodes / 81 edges

Loading call graph…

Lowest coverage

103 functions
FunctionCycloCoverage
.onLoad10%
stop_never_called10%
test_data10%
vec_ptype2.data.frame.spatial_block_cv10%
vec_ptype2.data.frame.spatial_buffer_vfold_cv10%
vec_ptype2.data.frame.spatial_clustering_cv10%

People & History

People (3)
Maintainer (1)
Author, Maintainer · added in 0.2.0
Authors (2)
Author, Maintainer · added in 0.2.0
Copyright holders (1)
Copyright holder, Funder · added in 0.4.0
Funders (1)
Copyright holder, Funder · added in 0.4.0
Listed in earlier versions (1)
no longer listed · 0.1.0 to 0.3.0
Package Timeline

9 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.6.1Latest
    2025-12-02 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.6.0
    2024-10-02 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.5.1
    2023-11-08 · diff ↗
  • 0.5.0
    2023-11-03 · diff ↗
  • 0.4.0
    2023-05-17 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.3.0
    2023-01-17 · diff ↗
  • 0.2.1
    2022-08-06 · diff ↗
  • 0.2.0
    2022-06-17 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.0
    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
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →