Spatiotemporal Resampling Methods for 'mlr3'
Overview
Extends the mlr3 machine learning framework with spatio-temporal resampling methods to account for the presence of spatiotemporal autocorrelation (STAC) in predictor variables. STAC may cause highly biased performance estimates in cross-validation if ignored. A JSS article is available at doi:10.18637/jss.v111.i07.
Bug fixes
- require at least two folds for partitioning resamplings (#253, #258).
- fix
an error that prevented spcv_knndmto work properly in nested resampling (#249, #250).
chore
- Use ``
load_datasetfor tasks (#254).
Testing
- Update tests for blockCV 4.0 (drop spatialBlock) (#255, #256).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 37 (4 internal)includes a package overview page
- Examples that run
- 39%11 run in a plain check (1 of them under a condition) · 16 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
- Exported functions with examples
- 90%
- Documented parameters
- 50%
- Return-value docs
- 10%
- Help pages citing references
- 51%
Downloads
Repository
- PRs merged (all time)
- 90%
- Median days to close, 50 most recently updated closed issues
- 26
- 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
Commits over time
14 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/mlr-org/mlr3spatiotempcv on 2026-10-25.
The R CMD check workflow runs on Linux, and on R-devel
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-08-03 · The repository has a site deploy workflow
pkgdown site last built 2026-08-03
Show all practicesHide 4 practices
Dependencies
Installing mlr3spatiotempcv adds 38 packages (16 with compiled code, 28 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, palmerpenguins 2.9 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- unarchivedReturned to CRAN2025-09-12
- 2.3.5Latest
- 2.3.42025-09-12 · diff ↗
- archivedRemoved from CRAN2025-08-25errors were not corrected in time
- 2.3.32025-07-10 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 2.3.22024-11-29 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 2.3.12024-04-17 · diff ↗
- 2.3.02024-01-22 · diff ↗
- 2.2.0
- 2.1.0
- RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2022-11-19
- 2.0.32022-11-19 · diff ↗
Show 18 earlier eventsHide 18 earlier events
- archivedRemoved from CRAN2022-10-17issues were not corrected in time
- 2.0.22022-08-09 · diff ↗
- 2.0.12022-06-22 · diff ↗
- 2.0.02022-06-14 · diff ↗ ·
added 9 exports
as_task_classif_st.DataBackend, as_task_classif_st.TaskClassifST, as_task_classif_st.data.frame, as_task_classif_st.sf, as_task_regr_st.DataBackend, as_task_regr_st.TaskClassifST, as_task_regr_st.TaskRegrST, as_task_regr_st.data.frame, as_task_regr_st.sf - RR 4.2.0 released · 2022-04-22
- 1.0.12022-03-03 · diff ↗
- 1.0.02021-08-19 · diff ↗
- 0.4.12021-06-23 · diff ↗
- 0.4.02021-06-03 · diff ↗ ·
added 6 exports
ResamplingRepeatedSpCVDisc, ResamplingRepeatedSpCVTiles, ResamplingSpCVDisc, ResamplingSpCVTiles, as_task_classif_st, as_task_regr_st - RR 4.1.0 released · 2021-05-18
- unarchivedReturned to CRAN2021-04-13
- 0.3.02021-04-13 · diff ↗
- archivedRemoved from CRAN2021-04-04check problems were not corrected in time
- 0.2.12021-03-20 · diff ↗
- 0.2.02021-03-08 · diff ↗
- 0.1.12021-01-05 · diff ↗
- 0.1.02020-11-11
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-11-11
- Total releases
- 21 / 6 yrs
- License
- LGPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 845 KB / 3 files
- Download size
- 3.3 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("mlr3spatiotempcv")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v111.i07.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.