- using R Under development (unstable) (2026-01-19 r89308 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'CAST/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'CAST' version '1.0.3'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'CAST' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [4s] OK
- checking whether the package can be loaded with stated dependencies ... [4s] OK
- checking whether the package can be unloaded cleanly ... [4s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s] OK
- checking whether the namespace can be unloaded cleanly ... [4s] OK
- checking loading without being on the library search path ... [4s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [15s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [0s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [15s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [150s] ERROR
Running 'testthat.R' [150s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(CAST)
>
> test_check("CAST")
Loading required package: ggplot2
Loading required package: lattice
Saving _problems/test-aoa-54.R
note: variables were not weighted either because no weights or model were given,
no variable importance could be retrieved from the given model, or the model has a single feature.
Check caret::varImp(model)
note: No model and no CV folds were given. The DI threshold is therefore based on all training data
Saving _problems/test-aoa-71.R
Saving _problems/test-aoa-95.R
note: variables were not weighted either because no weights or model were given,
no variable importance could be retrieved from the given model, or the model has a single feature.
Check caret::varImp(model)
note: No model and no CV folds were given. The DI threshold is therefore based on all training data
Saving _problems/test-aoa-119.R
[1] "model using Sepal.Length,Sepal.Width will be trained now..."
note: only 1 unique complexity parameters in default grid. Truncating the grid to 1 .
[1] "maximum number of models that still need to be trained: 8"
[1] "model using Sepal.Length,Petal.Length will be trained now..."
note: only 1 unique complexity parameters in default grid. Truncating the grid to 1 .
[1] "maximum number of models that still need to be trained: 7"
[1] "model using Sepal.Length,Petal.Width will be trained now..."
note: only 1 unique complexity parameters in default grid. Truncating the grid to 1 .
[1] "maximum number of models that still need to be trained: 6"
[1] "model using Sepal.Width,Petal.Length will be trained now..."
note: only 1 unique complexity parameters in default grid. Truncating the grid to 1 .
[1] "maximum number of models that still need to be trained: 5"
[1] "model using Sepal.Width,Petal.Width will be trained now..."
note: only 1 unique complexity parameters in default grid. Truncating the grid to 1 .
[1] "maximum number of models that still need to be trained: 4"
[1] "model using Petal.Length,Petal.Width will be trained now..."
note: only 1 unique complexity parameters in default grid. Truncating the grid to 1 .
[1] "maximum number of models that still need to be trained: 3"
[1] "vars selected: Petal.Length,Petal.Width with Accuracy 0.953"
[1] "model using additional variable Sepal.Length will be trained now..."
note: only 2 unique complexity parameters in default grid. Truncating the grid to 2 .
[1] "maximum number of models that still need to be trained: 2"
[1] "model using additional variable Sepal.Width will be trained now..."
note: only 2 unique complexity parameters in default grid. Truncating the grid to 2 .
[1] "maximum number of models that still need to be trained: 1"
[1] "vars selected: Petal.Length,Petal.Width,Sepal.Width with Accuracy 0.954"
[1] "model using additional variable Sepal.Length will be trained now..."
[1] "maximum number of models that still need to be trained: 0"
[1] "vars selected: Petal.Length,Petal.Width,Sepal.Width with Accuracy 0.954"
Spherical geometry (s2) switched off
Spherical geometry (s2) switched on
Spherical geometry (s2) switched off
Spherical geometry (s2) switched on
features are extracted from the modeldomain
samplesize for new data shouldn't be larger than number of pixels.
Samplesize was reduced to 100
Spherical geometry (s2) switched off
Spherical geometry (s2) switched on
features are extracted from the modeldomain
samplesize for new data shouldn't be larger than number of pixels.
Samplesize was reduced to 100
Spherical geometry (s2) switched off
features are extracted from the modeldomain
samplesize for new data shouldn't be larger than number of pixels.
Samplesize was reduced to 100
Spherical geometry (s2) switched on
features are extracted from the modeldomain
samplesize for new data shouldn't be larger than number of pixels.
Samplesize was reduced to 100
Spherical geometry (s2) switched off
variable(s) 'fct' is (are) treated as categorical variables
time variable that has been selected: Date
time variable that has been selected: Date
time variable that has been selected: Date
note: only 2 unique complexity parameters in default grid. Truncating the grid to 2 .
note: only 2 unique complexity parameters in default grid. Truncating the grid to 2 .
Spherical geometry (s2) switched on
although coordinates are longitude/latitude, st_sample assumes that they are
planar
although coordinates are longitude/latitude, st_sample assumes that they are
planar
1000 prediction points are sampled from the modeldomain
Gij <= Gj; a random CV assignment is returned
1000 prediction points are sampled from the modeldomain
Gij <= Gj; a random CV assignment is returned
1000 prediction points are sampled from the modeldomain
predictor values are extracted for prediction points
Gij <= Gj; a random CV assignment is returned
1000 prediction points are sampled from the modeldomain
predictor values are extracted for prediction points
Gij <= Gj; a random CV assignment is returned
1000 prediction points are sampled from the modeldomain
although coordinates are longitude/latitude, st_sample assumes that they are
planar
predictor values are extracted for prediction points
variable(s) 'fct' is (are) treated as categorical variables
some prediction points contain NAs, which will be removed
Gij <= Gj; a random CV assignment is returned
1000 prediction points are sampled from the modeldomain
predictor values are extracted for prediction points
variable(s) 'fct' is (are) treated as categorical variables
1000 prediction points are sampled from the modeldomain
predictor values are extracted for prediction points
variable(s) 'fct' is (are) treated as categorical variables
1000 prediction points are sampled from the modeldomain
although coordinates are longitude/latitude, st_sample assumes that they are
planar
predictor values are extracted for prediction points
1000 prediction points are sampled from the modeldomain
predictor values are extracted for prediction points
1000 prediction points are sampled from the modeldomain
predictor values are extracted for prediction points
1000 prediction points are sampled from the modeldomain
1000 prediction points are sampled from the modeldomain
1000 prediction points are sampled from the modeldomain
1000 prediction points are sampled from the modeldomain
[ FAIL 4 | WARN 0 | SKIP 10 | PASS 109 ]
══ Skipped tests (10) ══════════════════════════════════════════════════════════
• On CRAN (10): 'test-errorProfiles.R:3:3', 'test-errorProfiles.R:36:3',
'test-errorProfiles.R:67:3', 'test-fss.R:3:3', 'test-fss.R:27:3',
'test-fss.R:47:3', 'test-fss.R:70:3', 'test-fss.R:120:5', 'test-fss.R:135:5',
'test-fss.R:152:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-aoa.R:51:3'): AOA works in default: used with raster data and a trained model ──
Expected `as.vector(summary(terra::values(AOA$DI)))` to equal `c(...)`.
Differences:
actual | expected
[4] "Mean :0.2858 " | "Mean :0.2858 " [4]
[5] "3rd Qu.:0.3815 " | "3rd Qu.:0.3815 " [5]
[6] "Max. :4.4485 " | "Max. :4.4485 " [6]
[7] "NAs :1993 " - "NA's :1993 " [7]
── Failure ('test-aoa.R:68:3'): AOA works without a trained model ──────────────
Expected `as.vector(summary(terra::values(AOA$DI)))` to equal `c(...)`.
Differences:
actual | expected
[4] "Mean :0.3109 " | "Mean :0.3109 " [4]
[5] "3rd Qu.:0.4051 " | "3rd Qu.:0.4051 " [5]
[6] "Max. :2.6631 " | "Max. :2.6631 " [6]
[7] "NAs :1993 " - "NA's :1993 " [7]
── Failure ('test-aoa.R:92:3'): AOA (including LPD) works with raster data and a trained model ──
Expected `as.vector(summary(terra::values(AOA$DI)))` to equal `c(...)`.
Differences:
actual | expected
[4] "Mean :0.2858 " | "Mean :0.2858 " [4]
[5] "3rd Qu.:0.3815 " | "3rd Qu.:0.3815 " [5]
[6] "Max. :4.4485 " | "Max. :4.4485 " [6]
[7] "NAs :1993 " - "NA's :1993 " [7]
── Failure ('test-aoa.R:116:3'): AOA (inluding LPD) works without a trained model ──
Expected `as.vector(summary(terra::values(AOA$DI)))` to equal `c(...)`.
Differences:
actual | expected
[4] "Mean :0.3109 " | "Mean :0.3109 " [4]
[5] "3rd Qu.:0.4051 " | "3rd Qu.:0.4051 " [5]
[6] "Max. :2.6631 " | "Max. :2.6631 " [6]
[7] "NAs :1993 " - "NA's :1993 " [7]
[ FAIL 4 | WARN 0 | SKIP 10 | PASS 109 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [320s] OK
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [6s] OK
- DONE
Status: 1 ERROR