R Under development (unstable) (2025-06-19 r88329 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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