CAST
1.1.1'caret' Applications for Spatial-Temporal Models
Overview
Supporting functionality to run 'caret' with spatial or spatial-temporal data. 'caret' is a frequently used package for model training and prediction using machine learning. CAST includes functions to improve spatial or spatial-temporal modelling tasks using 'caret'. It includes the newly suggested 'Nearest neighbor distance matching' cross-validation to estimate the performance of spatial prediction models and allows for spatial variable selection to selects suitable predictor variables in view to their contribution to the spatial model performance. CAST further includes functionality to estimate the (spatial) area of applicability of prediction models. Methods are described in Meyer et al. (2018) doi:10.1016/j.envsoft.2017.12.001; Meyer et al. (2019) doi:10.1016/j.ecolmodel.2019.108815; Meyer and Pebesma (2021) doi:10.1111/2041-210X.13650; Milà et al. (2022) doi:10.1111/2041-210X.13851; Meyer and Pebesma (2022) doi:10.1038/s41467-022-29838-9; Linnenbrink et al. (2024) doi:10.5194/gmd-17-5897-2024; Schumacher et al. (2025) doi:10.5194/gmd-18-10185-2025. The package is described in detail in Meyer et al. (2026) doi:10.1007/978-3-031-99665-8_11.
Install
Health
- OK2026-07-1613 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-1710 OK · 0 NOTE · 0 WARNING · 3 ERROR · 0 FAILURE
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-05-0713 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 12 earlier snapshots
- ERROR2026-04-2213 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-04-2014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1813 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-04-1514 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1113 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-04-0914 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-03-3113 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-3014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-03-1913 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1714 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-03-1213 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 31%
- Documented parameters
- 98%
- Return-value docs
- 71%
- References docs
- 48%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Repository practices
5 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/hannameyer/cast on 2026-07-19.
Show all practices
Dependencies
Code & Tests
- Cyclomatic complexity
- 6.0 median / 68 max
- Test cases
- 82 / 0.31 per code line
Test coverage
Line coverage
72%
Expression
75.0%
Tests / Examples
71.6% / 14% ex
Functions
54 17 exported
Complexity
11.3 avg / 68 max
Call network
54 nodes / 43 edges
Call graph
Open call graph →Lowest coverage
54 functions| Function | Cyclo | Coverage |
|---|---|---|
| show.aoa exp | 1 | 0% |
| show.ffs exp | 1 | 0% |
| show.knndm exp | 1 | 0% |
| show.nndm exp | 1 | 0% |
| show.trainDI exp | 1 | 0% |
| aoa.Raster | 1 | 0% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| cookfarm | data.frame | 128,545 × 17 | – |
People & History
23 releases. Pick two to compare their code metrics. R releases are shown for context.
- 1.1.1Latest
- 1.1.02026-06-19 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 1.0.42026-01-26 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.0.32025-01-10 · diff ↗
- 1.0.22024-06-15 · diff ↗
- 1.0.12024-04-25 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.0.02024-04-08 · diff ↗
- 0.9.02024-01-09 · diff ↗
- 0.8.12023-05-30 · diff ↗
- 0.8.02023-05-21 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.7.12023-02-04 · diff ↗
- 0.7.02022-08-24 · diff ↗
Show 17 earlier events
- RR 4.2.0 released · 2022-04-22
- 0.6.02022-03-17 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.5.12021-04-07 · diff ↗
- 0.5.02021-02-19 · diff ↗
- 0.4.22020-07-17 · diff ↗
- 0.4.12020-05-19 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.4.02020-04-06 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.3.12018-11-19 · diff ↗
- 0.3.02018-10-11 · diff ↗
- 0.2.12018-07-12 · diff ↗
- 0.2.02018-05-03 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.1.02018-01-09
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2018-01-09
- Total releases
- 23 / 8 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 254 KB / 2 files
- Download size
- 4.6 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet