- using R Under development (unstable) (2025-11-13 r89015)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘spatialsample/DESCRIPTION’ ... OK
- this is package ‘spatialsample’ version ‘0.6.0’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘spatialsample’ can be installed ... [72s/191s] OK
See the install log for details.
- used C++ compiler: ‘g++ (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)’
- 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 ... [5s/12s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/16s] OK
- checking whether the package can be unloaded cleanly ... [4s/13s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s/13s] OK
- checking whether the namespace can be unloaded cleanly ... [5s/17s] OK
- checking loading without being on the library search path ... [5s/13s] OK
- checking whether startup messages can be suppressed ... [5s/15s] 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 ... [198s/472s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [13s/15s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [582s/314s] ERROR
Running ‘testthat.R’ [581s/313s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(spatialsample)
>
> sf::sf_extSoftVersion()
GEOS GDAL proj.4 GDAL_with_GEOS USE_PROJ_H
"3.13.0" "3.10.3" "9.6.2" "true" "true"
PROJ
"9.6.2"
>
> test_check("spatialsample")
Starting 2 test processes.
> test-buffer.R: Spherical geometry (s2) switched off
> test-buffer.R: Spherical geometry (s2) switched on
> test-autoplot.R: Only 4% of blocks contain any data
> test-autoplot.R: i Check that your block sizes make sense for your data
> test-compat-dplyr.R:
> test-compat-dplyr.R: Attaching package: 'dplyr'
> test-compat-dplyr.R:
> test-compat-dplyr.R: The following objects are masked from 'package:stats':
> test-compat-dplyr.R:
> test-compat-dplyr.R: filter, lag
> test-compat-dplyr.R:
> test-compat-dplyr.R: The following objects are masked from 'package:base':
> test-compat-dplyr.R:
> test-compat-dplyr.R: intersect, setdiff, setequal, union
> test-compat-dplyr.R:
> test-spatial_block_cv.R: Spherical geometry (s2) switched off
> test-spatial_block_cv.R: Spherical geometry (s2) switched on
> test-spatial_nndm_cv.R: Linking to GEOS 3.13.0, GDAL 3.10.3, PROJ 9.6.2; sf_use_s2() is TRUE
> test-spatial_vfold_cv.R: Spherical geometry (s2) switched off
> test-spatial_vfold_cv.R: Spherical geometry (s2) switched on
Saving _problems/test-spatial_vfold_cv-202.R
[ FAIL 1 | WARN 0 | SKIP 26 | PASS 535 ]
══ Skipped tests (26) ══════════════════════════════════════════════════════════
• On CRAN (26): 'test-autoplot.R:33:3', 'test-autoplot.R:125:1',
'test-buffer.R:10:3', 'test-buffer.R:168:1', 'test-buffer.R:205:3',
'test-buffer.R:291:3', 'test-compat-vctrs.R:128:1', 'test-misc.R:1:1',
'test-misc.R:20:1', 'test-misc.R:31:1', 'test-spatial_clustering_cv.R:70:1',
'test-spatial_clustering_cv.R:110:1', 'test-spatial_clustering_cv.R:217:1',
'test-spatial_nndm_cv.R:13:1', 'test-spatial_nndm_cv.R:37:1',
'test-spatial_nndm_cv.R:76:1', 'test-spatial_nndm_cv.R:101:1',
'test-spatial_vfold_cv.R:10:1', 'test-spatial_vfold_cv.R:24:1',
'test-spatial_vfold_cv.R:84:1', 'test-spatial_vfold_cv.R:225:1',
'test-spatial_block_cv.R:10:1', 'test-spatial_block_cv.R:68:1',
'test-spatial_block_cv.R:225:1', 'test-spatial_block_cv.R:261:1',
'test-spatial_block_cv.R:321:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-spatial_vfold_cv.R:200:3'): bad args ───────────────────────────
Error in `rsample::vfold_cv(data = data, v = v, repeats = repeats, strata = { { strata } }, breaks = breaks, pool = pool, ...)`: Leave-one-out cross-validation is not supported by this function.
x You set `v` to `nrow(data)`, which would result in a leave-one-out cross-validation.
i Use `loo_cv()` in this case.
Backtrace:
▆
1. └─spatialsample::spatial_buffer_vfold_cv(...)
2. └─rsample::vfold_cv(...)
3. └─rsample:::vfold_splits(...)
4. └─rsample:::check_v(v, n, prevent_loo = prevent_loo, call = rlang::caller_env())
5. └─cli::cli_abort(...)
6. └─rlang::abort(...)
[ FAIL 1 | WARN 0 | SKIP 26 | PASS 535 ]
Deleting unused snapshots: 'autoplot/buffered-llo-set-plot.svg',
'autoplot/buffered-llo-split-plot.svg', 'autoplot/buffered-rsample-plot.svg',
'autoplot/buffered-rset-plot.svg', 'autoplot/buffered-vfold-plot.svg',
'autoplot/buffered-vfold-split.svg', 'autoplot/repeated-block-cv.svg',
'autoplot/repeated-llo.svg', 'autoplot/repeated-vfold.svg', and
'autoplot/snake-flips-rows-the-right-way.svg'
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [88s/91s] OK
- checking PDF version of manual ... [7s/17s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR