* using log directory ‘/home/hornik/tmp/CRAN_special_noSuggests/blockCV.Rcheck’ * using R Under development (unstable) (2025-08-18 r88641) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-14 (Debian 14.2.0-19) 14.2.0 GNU Fortran (Debian 14.2.0-19) 14.2.0 * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * checking for file ‘blockCV/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘blockCV’ version ‘3.2-0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [7s/8s] NOTE Maintainer: ‘Roozbeh Valavi ’ New submission Package was archived on CRAN Possibly misspelled words in DESCRIPTION: Valavi (20:399) al (20:413) et (20:410) CRAN repository db overrides: X-CRAN-Comment: Archived on 2025-07-30 as issues were not corrected in time. * 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 ‘blockCV’ can be installed ... [17s/17s] OK * used C++ compiler: ‘g++-14 (Debian 14.2.0-19) 14.2.0’ * checking package directory ... OK * checking for future file timestamps ... 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 ... [1s/1s] OK * checking whether the package can be loaded with stated dependencies ... [1s/1s] OK * checking whether the package can be unloaded cleanly ... [1s/1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/1s] OK * checking whether startup messages can be suppressed ... [1s/1s] 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 ... [10s/10s] OK * checking Rd files ... [0s/0s] 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 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 ... [2s/2s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [18s/18s] ERROR Running ‘testthat.R’ [18s/18s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(blockCV) blockCV 3.2.0 > > test_check("blockCV") | | | 0% | |= | 1% | |= | 2% | |== | 2% | |== | 3% | |== | 4% | |=== | 4% | |==== | 5% | |==== | 6% | |===== | 6% | |===== | 7% | |===== | 8% | |====== | 8% | |====== | 9% | |======= | 10% | |======== | 11% | |======== | 12% | |========= | 12% | |========= | 13% | |========= | 14% | |========== | 14% | |========== | 15% | |=========== | 16% | |============ | 16% | |============ | 17% | |============ | 18% | |============= | 18% | |============= | 19% | |============== | 20% | |=============== | 21% | |=============== | 22% | |================ | 22% | |================ | 23% | |================ | 24% | |================= | 24% | |================== | 25% | |================== | 26% | |=================== | 26% | |=================== | 27% | |=================== | 28% | |==================== | 28% | |==================== | 29% | |===================== | 30% | |====================== | 31% | |====================== | 32% | |======================= | 32% | |======================= | 33% | |======================= | 34% | |======================== | 34% | |======================== | 35% | |========================= | 36% | |========================== | 36% | |========================== | 37% | |========================== | 38% | |=========================== | 38% | |=========================== | 39% | |============================ | 40% | |============================= | 41% | |============================= | 42% | |============================== | 42% | |============================== | 43% | |============================== | 44% | |=============================== | 44% | |================================ | 45% | |================================ | 46% | |================================= | 46% | |================================= | 47% | |================================= | 48% | |================================== | 48% | |================================== | 49% | |=================================== | 50% | |==================================== | 51% | |==================================== | 52% | |===================================== | 52% | |===================================== | 53% | |===================================== | 54% | |====================================== | 54% | |====================================== | 55% | |======================================= | 56% | |======================================== | 56% | |======================================== | 57% | |======================================== | 58% | |========================================= | 58% | |========================================= | 59% | |========================================== | 60% | |=========================================== | 61% | |=========================================== | 62% | |============================================ | 62% | |============================================ | 63% | |============================================ | 64% | |============================================= | 64% | |============================================== | 65% | |============================================== | 66% | |=============================================== | 66% | |=============================================== | 67% | |=============================================== | 68% | |================================================ | 68% | |================================================ | 69% | |================================================= | 70% | |================================================== | 71% | |================================================== | 72% | |=================================================== | 72% | |=================================================== | 73% | |=================================================== | 74% | |==================================================== | 74% | |==================================================== | 75% | |===================================================== | 76% | |====================================================== | 76% | |====================================================== | 77% | |====================================================== | 78% | |======================================================= | 78% | |======================================================= | 79% | |======================================================== | 80% | |========================================================= | 81% | |========================================================= | 82% | |========================================================== | 82% | |========================================================== | 83% | |========================================================== | 84% | |=========================================================== | 84% | |============================================================ | 85% | |============================================================ | 86% | |============================================================= | 86% | |============================================================= | 87% | |============================================================= | 88% | |============================================================== | 88% | |============================================================== | 89% | |=============================================================== | 90% | |================================================================ | 91% | |================================================================ | 92% | |================================================================= | 92% | |================================================================= | 93% | |================================================================= | 94% | |================================================================== | 94% | |================================================================== | 95% | |=================================================================== | 96% | |==================================================================== | 96% | |==================================================================== | 97% | |==================================================================== | 98% | |===================================================================== | 98% | |===================================================================== | 99% | |======================================================================| 100% train_0 train_1 test_0 test_1 Min. : 92.0 Min. :53.00 Min. :0.000 Min. :0.000 Mean :104.6 Mean :78.84 Mean :0.555 Mean :0.445 Max. :111.0 Max. :89.00 Max. :1.000 Max. :1.000 train_0 train_1 test_0 test_1 Min. : 95.0 Min. :53.00 Min. :0 Min. :1 Mean :106.2 Mean :71.01 Mean :0 Mean :1 Max. :111.0 Max. :88.00 Max. :0 Max. :1 | | | 0% | |= | 1% | |= | 2% | |== | 2% | |== | 3% | |== | 4% | |=== | 4% | |==== | 5% | |==== | 6% | |===== | 6% | |===== | 7% | |===== | 8% | |====== | 8% | |====== | 9% | |======= | 10% | |======== | 11% | |======== | 12% | |========= | 12% | |========= | 13% | |========= | 14% | |========== | 14% | |========== | 15% | |=========== | 16% | |============ | 16% | |============ | 17% | |============ | 18% | |============= | 18% | |============= | 19% | |============== | 20% | |=============== | 21% | |=============== | 22% | |================ | 22% | |================ | 23% | |================ | 24% | |================= | 24% | |================== | 25% | |================== | 26% | |=================== | 26% | |=================== | 27% | |=================== | 28% | |==================== | 28% | |==================== | 29% | |===================== | 30% | |====================== | 31% | |====================== | 32% | |======================= | 32% | |======================= | 33% | |======================= | 34% | |======================== | 34% | |======================== | 35% | |========================= | 36% | |========================== | 36% | |========================== | 37% | |========================== | 38% | |=========================== | 38% | |=========================== | 39% | |============================ | 40% | |============================= | 41% | |============================= | 42% | |============================== | 42% | |============================== | 43% | |============================== | 44% | |=============================== | 44% | |================================ | 45% | |================================ | 46% | |================================= | 46% | |================================= | 47% | |================================= | 48% | |================================== | 48% | |================================== | 49% | |=================================== | 50% | |==================================== | 51% | |==================================== | 52% | |===================================== | 52% | |===================================== | 53% | |===================================== | 54% | |====================================== | 54% | |====================================== | 55% | |======================================= | 56% | |======================================== | 56% | |======================================== | 57% | |======================================== | 58% | |========================================= | 58% | |========================================= | 59% | |========================================== | 60% | |=========================================== | 61% | |=========================================== | 62% | |============================================ | 62% | |============================================ | 63% | |============================================ | 64% | |============================================= | 64% | |============================================== | 65% | |============================================== | 66% | |=============================================== | 66% | |=============================================== | 67% | |=============================================== | 68% | |================================================ | 68% | |================================================ | 69% | |================================================= | 70% | |================================================== | 71% | |================================================== | 72% | |=================================================== | 72% | |=================================================== | 73% | |=================================================== | 74% | |==================================================== | 74% | |==================================================== | 75% | |===================================================== | 76% | |====================================================== | 76% | |====================================================== | 77% | |====================================================== | 78% | |======================================================= | 78% | |======================================================= | 79% | |======================================================== | 80% | |========================================================= | 81% | |========================================================= | 82% | |========================================================== | 82% | |========================================================== | 83% | |========================================================== | 84% | |=========================================================== | 84% | |============================================================ | 85% | |============================================================ | 86% | |============================================================= | 86% | |============================================================= | 87% | |============================================================= | 88% | |============================================================== | 88% | |============================================================== | 89% | |=============================================================== | 90% | |================================================================ | 91% | |================================================================ | 92% | |================================================================= | 92% | |================================================================= | 93% | |================================================================= | 94% | |================================================================== | 94% | |================================================================== | 95% | |=================================================================== | 96% | |==================================================================== | 96% | |==================================================================== | 97% | |==================================================================== | 98% | |===================================================================== | 98% | |===================================================================== | 99% | |======================================================================| 100% train test Min. :162.0 Min. :1 Mean :183.5 Mean :1 Max. :199.0 Max. :1 [1] "cv_buffer" | | | 0% | |= | 1% | |= | 2% | |== | 2% | |== | 3% | |== | 4% | |=== | 4% | |==== | 5% | |==== | 6% | |===== | 6% | |===== | 7% | |===== | 8% | |====== | 8% | |====== | 9% | |======= | 10% | |======== | 11% | |======== | 12% | |========= | 12% | |========= | 13% | |========= | 14% | |========== | 14% | |========== | 15% | |=========== | 16% | |============ | 16% | |============ | 17% | |============ | 18% | |============= | 18% | |============= | 19% | |============== | 20% | |=============== | 21% | |=============== | 22% | |================ | 22% | |================ | 23% | |================ | 24% | |================= | 24% | |================== | 25% | |================== | 26% | |=================== | 26% | |=================== | 27% | |=================== | 28% | |==================== | 28% | |==================== | 29% | |===================== | 30% | |====================== | 31% | |====================== | 32% | |======================= | 32% | |======================= | 33% | |======================= | 34% | |======================== | 34% | |======================== | 35% | |========================= | 36% | |========================== | 36% | |========================== | 37% | |========================== | 38% | |=========================== | 38% | |=========================== | 39% | |============================ | 40% | |============================= | 41% | |============================= | 42% | |============================== | 42% | |============================== | 43% | |============================== | 44% | |=============================== | 44% | |================================ | 45% | |================================ | 46% | |================================= | 46% | |================================= | 47% | |================================= | 48% | |================================== | 48% | |================================== | 49% | |=================================== | 50% | |==================================== | 51% | |==================================== | 52% | |===================================== | 52% | |===================================== | 53% | |===================================== | 54% | |====================================== | 54% | |====================================== | 55% | |======================================= | 56% | |======================================== | 56% | |======================================== | 57% | |======================================== | 58% | |========================================= | 58% | |========================================= | 59% | |========================================== | 60% | |=========================================== | 61% | |=========================================== | 62% | |============================================ | 62% | |============================================ | 63% | |============================================ | 64% | |============================================= | 64% | |============================================== | 65% | |============================================== | 66% | |=============================================== | 66% | |=============================================== | 67% | |=============================================== | 68% | |================================================ | 68% | |================================================ | 69% | |================================================= | 70% | |================================================== | 71% | |================================================== | 72% | |=================================================== | 72% | |=================================================== | 73% | |=================================================== | 74% | |==================================================== | 74% | |==================================================== | 75% | |===================================================== | 76% | |====================================================== | 76% | |====================================================== | 77% | |====================================================== | 78% | |======================================================= | 78% | |======================================================= | 79% | |======================================================== | 80% | |========================================================= | 81% | |========================================================= | 82% | |========================================================== | 82% | |========================================================== | 83% | |========================================================== | 84% | |=========================================================== | 84% | |============================================================ | 85% | |============================================================ | 86% | |============================================================= | 86% | |============================================================= | 87% | |============================================================= | 88% | |============================================================== | 88% | |============================================================== | 89% | |=============================================================== | 90% | |================================================================ | 91% | |================================================================ | 92% | |================================================================= | 92% | |================================================================= | 93% | |================================================================= | 94% | |================================================================== | 94% | |================================================================== | 95% | |=================================================================== | 96% | |==================================================================== | 96% | |==================================================================== | 97% | |==================================================================== | 98% | |===================================================================== | 98% | |===================================================================== | 99% | |======================================================================| 100% train test Min. :162.0 Min. :1 Mean :183.5 Mean :1 Max. :199.0 Max. :1 'x' is not convertible to an sf object! 'x' must be an sf or spatial* object. train_0 train_1 test_0 test_1 1 86 16 171 227 2 226 242 31 1 3 202 228 55 15 train test 1 470 30 2 327 173 3 313 187 4 460 40 5 430 70 [1] "cv_cluster" train test 1 386 114 2 323 177 3 493 7 4 460 40 5 338 162 'x' is not convertible to an sf object! 'x' must be an sf or spatial* object. 'r' is not convertible to a terra SpatRaster object! 'r' must be a SpatRaster, stars, Raster* object, or path to a raster file on disk. train_0 train_1 test_0 test_1 Min. :48.00 Min. :27.00 Min. :0.00 Min. :0.00 Mean :52.43 Mean :41.68 Mean :0.55 Mean :0.45 Max. :55.00 Max. :45.00 Max. :1.00 Max. :1.00 train_0 train_1 test_0 test_1 Min. :42.00 Min. :26.00 Min. :0.0000 Min. :0.0000 Mean :52.47 Mean :35.42 Mean :0.6444 Mean :0.3556 Max. :55.00 Max. :43.00 Max. :1.0000 Max. :1.0000 train test Min. :82.00 Min. :1 Mean :94.12 Mean :1 Max. :98.00 Max. :1 train test Min. :79.0 Min. :1 Mean :93.7 Mean :1 Max. :98.0 Max. :1 'x' is not convertible to an sf object! 'x' must be an sf or spatial* object. train test 1 453 47 2 399 101 3 378 122 4 347 153 5 423 77 This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: | | | 0% | |============== | 20% | |============================ | 40% | |========================================== | 60% | |======================================================== | 80% | |======================================================================| 100% train_0 train_1 test_0 test_1 1 81 79 30 10 2 95 83 16 6 3 87 52 24 37 4 99 84 12 5 5 82 58 29 31 This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: train test 1 161 39 2 165 35 3 165 35 4 130 70 5 179 21 [1] "cv_spatial" This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: train test 1 150 50 2 154 46 3 176 24 4 150 50 5 170 30 [1] "cv_spatial" This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2, cowplot, automap Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2, cowplot, automap Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2, cowplot, automap Would you like to install them now? 1: yes 2: no Selection: This function requires these packages: ggplot2, cowplot, automap Would you like to install them now? 1: yes 2: no Selection: This function is deprecated! Please use 'cv_spatial_autocor' instead. This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function is deprecated! Please use 'cv_spatial_autocor' instead. This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function is deprecated! Please use 'cv_spatial' instead. This function requires these packages: ggplot2 Would you like to install them now? 1: yes 2: no Selection: This function is deprecated! Please use 'cv_buffer' instead. | | | 0% | | | 1% | |= | 1% | |= | 2% | |== | 2% | |== | 3% | |=== | 4% | |=== | 5% | |==== | 5% | |==== | 6% | |===== | 7% | |===== | 8% | |====== | 8% | |====== | 9% | |======= | 9% | |======= | 10% | |======= | 11% | |======== | 11% | |======== | 12% | |========= | 12% | |========= | 13% | |========== | 14% | |========== | 15% | |=========== | 15% | |=========== | 16% | |============ | 17% | |============ | 18% | |============= | 18% | |============= | 19% | |============== | 19% | |============== | 20% | |============== | 21% | |=============== | 21% | |=============== | 22% | |================ | 22% | |================ | 23% | |================= | 24% | |================= | 25% | |================== | 25% | |================== | 26% | |=================== | 27% | |=================== | 28% | |==================== | 28% | |==================== | 29% | |===================== | 29% | |===================== | 30% | |===================== | 31% | |====================== | 31% | |====================== | 32% | |======================= | 32% | |======================= | 33% | |======================== | 34% | |======================== | 35% | |========================= | 35% | |========================= | 36% | |========================== | 37% | |========================== | 38% | |=========================== | 38% | |=========================== | 39% | |============================ | 39% | |============================ | 40% | |============================ | 41% | |============================= | 41% | |============================= | 42% | |============================== | 42% | |============================== | 43% | |=============================== | 44% | |=============================== | 45% | |================================ | 45% | |================================ | 46% | |================================= | 47% | |================================= | 48% | |================================== | 48% | |================================== | 49% | |=================================== | 49% | |=================================== | 50% | |=================================== | 51% | |==================================== | 51% | |==================================== | 52% | |===================================== | 52% | |===================================== | 53% | |====================================== | 54% | |====================================== | 55% | |======================================= | 55% | |======================================= | 56% | |======================================== | 57% | |======================================== | 58% | |========================================= | 58% | |========================================= | 59% | |========================================== | 59% | |========================================== | 60% | |========================================== | 61% | |=========================================== | 61% | |=========================================== | 62% | |============================================ | 62% | |============================================ | 63% | |============================================= | 64% | |============================================= | 65% | |============================================== | 65% | |============================================== | 66% | |=============================================== | 67% | |=============================================== | 68% | |================================================ | 68% | |================================================ | 69% | |================================================= | 69% | |================================================= | 70% | |================================================= | 71% | |================================================== | 71% | |================================================== | 72% | |=================================================== | 72% | |=================================================== | 73% | |==================================================== | 74% | |==================================================== | 75% | |===================================================== | 75% | |===================================================== | 76% | |====================================================== | 77% | |====================================================== | 78% | |======================================================= | 78% | |======================================================= | 79% | |======================================================== | 79% | |======================================================== | 80% | |======================================================== | 81% | |========================================================= | 81% | |========================================================= | 82% | |========================================================== | 82% | |========================================================== | 83% | |=========================================================== | 84% | |=========================================================== | 85% | |============================================================ | 85% | |============================================================ | 86% | |============================================================= | 87% | |============================================================= | 88% | |============================================================== | 88% | |============================================================== | 89% | |=============================================================== | 89% | |=============================================================== | 90% | |=============================================================== | 91% | |================================================================ | 91% | |================================================================ | 92% | |================================================================= | 92% | |================================================================= | 93% | |================================================================== | 94% | |================================================================== | 95% | |=================================================================== | 95% | |=================================================================== | 96% | |==================================================================== | 97% | |==================================================================== | 98% | |===================================================================== | 98% | |===================================================================== | 99% | |======================================================================| 99% | |======================================================================| 100% train_0 train_1 test_0 test_1 Min. :190.0 Min. :131.0 Min. :0.000 Min. :0.000 Mean :220.4 Mean :186.9 Mean :0.514 Mean :0.486 Max. :254.0 Max. :243.0 Max. :1.000 Max. :1.000 This function is deprecated! Please use 'cv_cluster' instead. train_0 train_1 test_0 test_1 1 211 211 46 32 2 216 145 41 98 3 215 234 42 9 4 137 210 120 33 5 249 172 8 71 [ FAIL 18 | WARN 0 | SKIP 1 | PASS 148 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-data.R:10:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-cv_nndm.R:22:15'): test that cv_nndm function works properly with presence-absence data ── Error in `loadNamespace(x)`: there is no package called 'ggplot2' Backtrace: ▆ 1. ├─blockCV::cv_nndm(...) at test-cv_nndm.R:22:15 2. └─base::loadNamespace(x) 3. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 4. └─base (local) withOneRestart(expr, restarts[[1L]]) 5. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-cv_nndm.R:48:15'): test that cv_nndm function works properly with presence-background data ── Error in `loadNamespace(x)`: there is no package called 'ggplot2' Backtrace: ▆ 1. ├─blockCV::cv_nndm(...) at test-cv_nndm.R:48:15 2. └─base::loadNamespace(x) 3. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 4. └─base (local) withOneRestart(expr, restarts[[1L]]) 5. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-cv_nndm.R:73:15'): test that cv_nndm function works properly with no species specified ── Error in `loadNamespace(x)`: there is no package called 'ggplot2' Backtrace: ▆ 1. ├─blockCV::cv_nndm(...) at test-cv_nndm.R:73:15 2. └─base::loadNamespace(x) 3. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 4. └─base (local) withOneRestart(expr, restarts[[1L]]) 5. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-cv_nndm.R:100:5'): test cv_nndm function with no matching species column ── Error in `loadNamespace(x)`: there is no package called 'ggplot2' Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-cv_nndm.R:100:5 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─blockCV::cv_nndm(...) 8. └─base::loadNamespace(x) 9. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 10. └─base (local) withOneRestart(expr, restarts[[1L]]) 11. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-cv_plot.R:17:5'): test that cv_plot function works ───────────── Error in `.check_pkgs(c("ggplot2"))`: Please install these packages for function to work: ggplot2 Backtrace: ▆ 1. └─blockCV::cv_plot(cv = scv, x = pa_data) at test-cv_plot.R:17:5 2. └─blockCV:::.check_pkgs(c("ggplot2")) ── Error ('test-cv_similarity.R:22:5'): test that cv_similarity function works with cv_spatil and MESS ── Error in `.check_pkgs(pkg)`: Please install these packages for function to work: ggplot2 Backtrace: ▆ 1. └─blockCV::cv_similarity(cv = scv, x = pa_data, r = aus, method = "MESS") at test-cv_similarity.R:22:5 2. └─blockCV:::.check_pkgs(pkg) ── Error ('test-cv_similarity.R:31:5'): test that cv_similarity function works with cv_spatil and L1 ── Error in `.check_pkgs(pkg)`: Please install these packages for function to work: ggplot2 Backtrace: ▆ 1. └─blockCV::cv_similarity(cv = scv, x = pa_data, r = aus, method = "L1") at test-cv_similarity.R:31:5 2. └─blockCV:::.check_pkgs(pkg) ── Error ('test-cv_similarity.R:40:5'): test that cv_similarity function works with cv_spatil and L2 ── Error in `.check_pkgs(pkg)`: Please install these packages for function to work: ggplot2 Backtrace: ▆ 1. └─blockCV::cv_similarity(cv = scv, x = pa_data, r = aus, , method = "L2") at test-cv_similarity.R:40:5 2. └─blockCV:::.check_pkgs(pkg) ── Error ('test-cv_similarity.R:56:5'): test that cv_similarity function works with cv_buffer ── Error in `.check_pkgs(pkg)`: Please install these packages for function to work: ggplot2 Backtrace: ▆ 1. └─blockCV::cv_similarity(cv = bloo, x = pa_data, r = aus) at test-cv_similarity.R:56:5 2. └─blockCV:::.check_pkgs(pkg) ── Error ('test-cv_spatial.R:56:5'): test cv_spatial function with systematic assingment and no raster file ── Error in `.check_pkgs(c("ggplot2"))`: Please install these packages for function to work: ggplot2 Backtrace: ▆ 1. └─blockCV::cv_spatial(...) at test-cv_spatial.R:56:5 2. └─blockCV:::.check_pkgs(c("ggplot2")) ── Error ('test-cv_spatial.R:122:5'): test cv_spatial with checkerboard assingment and only row blocks ── Error in `.check_pkgs(c("ggplot2"))`: Please install these packages for function to work: ggplot2 Backtrace: ▆ 1. └─blockCV::cv_spatial(...) at test-cv_spatial.R:122:5 2. └─blockCV:::.check_pkgs(c("ggplot2")) ── Error ('test-cv_spatial.R:233:5'): test cv_spatial with no speceis column match ── Error in `.check_pkgs(c("ggplot2"))`: Please install these packages for function to work: ggplot2 Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-cv_spatial.R:233:5 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─blockCV::cv_spatial(...) 8. └─blockCV:::.check_pkgs(c("ggplot2")) ── Error ('test-cv_spatial_autocor.R:21:5'): test cv_spatial_autocor function works ── Error in `.check_pkgs(pkg)`: Please install these packages for function to work: ggplot2, cowplot, automap Backtrace: ▆ 1. └─blockCV::cv_spatial_autocor(r = aus, num_sample = 1000, plot = TRUE) at test-cv_spatial_autocor.R:21:5 2. └─blockCV:::.check_pkgs(pkg) ── Error ('test-cv_spatial_autocor.R:51:5'): test cv_spatial_autocor function with x ── Error in `.check_pkgs(pkg)`: Please install these packages for function to work: ggplot2, cowplot, automap Backtrace: ▆ 1. └─blockCV::cv_spatial_autocor(...) at test-cv_spatial_autocor.R:51:5 2. └─blockCV:::.check_pkgs(pkg) ── Error ('test-cv_spatial_autocor.R:69:5'): test cv_spatial_autocor function works with wgs crs ── Error in `.check_pkgs(pkg)`: Please install these packages for function to work: ggplot2, cowplot, automap Backtrace: ▆ 1. └─blockCV::cv_spatial_autocor(...) at test-cv_spatial_autocor.R:69:5 2. └─blockCV:::.check_pkgs(pkg) ── Error ('test-v2-functions.R:23:5'): test spatialAutoRange function works ──── Error in `.check_pkgs(c("ggplot2", "terra"))`: Please install these packages for function to work: ggplot2 Backtrace: ▆ 1. └─blockCV::spatialAutoRange(...) at test-v2-functions.R:23:5 2. └─blockCV:::.check_pkgs(c("ggplot2", "terra")) ── Error ('test-v2-functions.R:57:5'): test spatialAutoRange function with x ─── Error in `.check_pkgs(c("ggplot2", "terra"))`: Please install these packages for function to work: ggplot2 Backtrace: ▆ 1. └─blockCV::spatialAutoRange(...) at test-v2-functions.R:57:5 2. └─blockCV:::.check_pkgs(c("ggplot2", "terra")) ── Error ('test-v2-functions.R:96:5'): test spatiaBlock function works ───────── Error in `.check_pkgs(c("ggplot2"))`: Please install these packages for function to work: ggplot2 Backtrace: ▆ 1. └─blockCV::spatialBlock(...) at test-v2-functions.R:96:5 2. └─blockCV::cv_spatial(...) 3. └─blockCV:::.check_pkgs(c("ggplot2")) [ FAIL 18 | WARN 0 | SKIP 1 | PASS 148 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [1s/1s] OK * checking PDF version of manual ... [6s/6s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 1 NOTE