* using log directory 'd:/RCompile/CRANincoming/R-devel/caretSDM.Rcheck' * using R Under development (unstable) (2025-06-19 r88329 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'caretSDM/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'caretSDM' version '1.1.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Luíz Fernando Esser ' New submission Possibly misspelled words in DESCRIPTION: SDMs (20:42) geoprocessing (19:59) Size of tarball: 17108553 bytes * 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 'caretSDM' can be installed ... OK * checking installed package size ... OK * 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [37s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [74s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [208s] ERROR Running 'testthat.R' [208s] 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(future) > library(tibble) > library(purrr) Attaching package: 'purrr' The following object is masked from 'package:testthat': is_null > > library(caretSDM) > > test_check("caretSDM") ! Making grid over study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. Linking to GEOS 3.13.1, GDAL 3.11.0, PROJ 9.6.0; sf_use_s2() is TRUE ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using sf/Stars to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using sf/Stars to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using sf/Stars to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using sf/Stars to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. s1_names s2_names 1 bio1 wc2.1_10m_bio_1 2 bio12 wc2.1_10m_bio_12 ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. Cell_ids identified, removing duplicated cell_id. Testing country capitals Removed 0 records. Testing country centroids Removed 0 records. Testing duplicates Removed 0 records. Testing equal lat/lon Removed 0 records. Testing biodiversity institutions Removed 1 records. Testing coordinate validity Removed 0 records. Predictors identified, procceding with grid filter (removing NA and duplicated data). Testing country capitals Removed 0 records. Testing country centroids Removed 0 records. Testing duplicates Removed 1 records. Testing equal lat/lon Removed 0 records. Testing biodiversity institutions Removed 2 records. Testing coordinate validity Removed 0 records. Predictors identified, procceding with grid filter (removing NA and duplicated data). ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. Cell_ids identified, removing duplicated cell_id. Testing country capitals Removed 0 records. Testing country centroids Removed 0 records. Testing duplicates Removed 0 records. Testing equal lat/lon Removed 0 records. Testing biodiversity institutions Removed 1 records. Testing coordinate validity Removed 0 records. Predictors identified, procceding with grid filter (removing NA and duplicated data). Testing country capitals Removed 0 records. Testing country centroids Removed 0 records. Testing duplicates Removed 2 records. Testing equal lat/lon Removed 0 records. Testing biodiversity institutions Removed 0 records. Testing coordinate validity Removed 0 records. Predictors identified, procceding with grid filter (removing NA and duplicated data). Testing country capitals Removed 0 records. Testing country centroids Removed 0 records. Testing duplicates Removed 31 records. Testing equal lat/lon Removed 0 records. Testing biodiversity institutions Removed 5 records. Testing coordinate validity Removed 0 records. Testing country capitals Removed 0 records. Testing country centroids Removed 0 records. Testing duplicates Removed 31 records. Testing equal lat/lon Removed 0 records. Testing biodiversity institutions Removed 5 records. Testing coordinate validity Removed 0 records. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. Cell_ids identified, removing duplicated cell_id. Testing country capitals Removed 0 records. Testing country centroids Removed 0 records. Testing duplicates Removed 0 records. Testing equal lat/lon Removed 0 records. Testing biodiversity institutions Removed 1 records. Testing coordinate validity Removed 0 records. Predictors identified, procceding with grid filter (removing NA and duplicated data). Testing country capitals Removed 0 records. Testing country centroids Removed 0 records. Testing duplicates Removed 0 records. Testing equal lat/lon Removed 0 records. Testing biodiversity institutions Removed 1 records. Testing coordinate validity Removed 0 records. Predictors identified, procceding with grid filter (removing NA and duplicated data). ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. Loading required package: ggplot2 Loading required package: lattice Attaching package: 'caret' The following object is masked from 'package:caretSDM': predictors The following object is masked from 'package:purrr': lift The following object is masked from 'package:future': cluster ! Making grid over study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. [1] "Projecting: 1/1" [1] "Ensembling..." [1] "current" [1] "Araucaria angustifolia" ! Making grid over study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. [1] "Projecting: 1/1" [1] "Ensembling..." [1] "current" [1] "Araucaria angustifolia" [1] "Projecting: 1/1" [1] "Ensembling..." [1] "current" [1] "Araucaria angustifolia" [1] "Projecting: 1/1" [1] "Ensembling..." [1] "current" [1] "Araucaria angustifolia" [1] "Projecting: 1/1" [1] "Ensembling..." [1] "current" [1] "Araucaria angustifolia" [1] "Projecting: 1/1" [1] "Projecting: 1/2" [1] "Projecting: 2/2" [1] "Ensembling..." [1] "current" [1] "Araucaria angustifolia" [1] "teste" [1] "Araucaria angustifolia" ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. trying to read file: test.gpkg ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using sf/Stars to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using sf/Stars to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using sf/Stars to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using sf/Stars to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using sf/Stars to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using sf/Stars to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. [1] "Projecting: 1/1" [1] "Projecting: 1/1" [1] "Ensembling..." [1] "current" [1] "Araucaria angustifolia" ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! ℹ Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over the study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. ! Making grid over study area is an expensive task. Please, be patient! i Using GDAL to make the grid and resample the variables. [ FAIL 2 | WARN 1 | SKIP 22 | PASS 573 ] ══ Skipped tests (22) ══════════════════════════════════════════════════════════ • On CRAN (22): 'test-add_predictors.R:392:3', 'test-input_sdm.R:8:3', 'test-names.R:38:3', 'test-occurrences_sdm.R:335:3', 'test-pca_predictors.R:15:3', 'test-pca_predictors.R:31:3', 'test-predict_sdm.R:42:3', 'test-predict_sdm.R:73:3', 'test-predict_sdm.R:102:3', 'test-sdm_area.R:55:3', 'test-sdm_area.R:234:3', 'test-sdm_area.R:282:3', 'test-sdm_area.R:303:3', 'test-sdm_area.R:328:3', 'test-sdm_area.R:355:3', 'test-sdm_area.R:361:3', 'test-sdm_area.R:378:3', 'test-train_sdm.R:33:3', 'test-train_sdm.R:49:3', 'test-train_sdm.R:65:3', 'test-train_sdm.R:79:3', 'test-train_sdm.R:94:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-write.R:13:3'): write_gpkg.sdm_area - salvar arquivo com sf ──── Error in `setwd(dir = new)`: cannot change working directory Backtrace: ▆ 1. └─withr::with_tempdir(...) at test-write.R:13:3 2. └─withr::with_dir(tmp, code) 3. └─base::setwd(dir = new) ── Error ('test-write.R:45:3'): write_gpkg.sdm_area - salvar arquivo com sf file path invalido ── Error in `write_gpkg(sa, file_path = "/tmp", file_name = 1)`: x Assertion on file_path failed. i Directory '/tmp' does not exist Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-write.R:45:3 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. └─caretSDM::write_gpkg(sa, file_path = "/tmp", file_name = 1) 8. └─caretSDM:::assert_directory_cli(file_path) 9. └─caretSDM:::make_assertion(...) 10. └─cli::cli_abort(...) 11. └─rlang::abort(...) [ FAIL 2 | WARN 1 | SKIP 22 | PASS 573 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [56s] OK * checking PDF version of manual ... [13s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE