Running 'testthat.R' [219s]
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(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!
  ℹ 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 0 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 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
  
  [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 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 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 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.
  [ FAIL 1 | WARN 0 | SKIP 31 | PASS 574 ]
  
  ══ Skipped tests (31) ══════════════════════════════════════════════════════════
  • On CRAN (31): 'test-add_predictors.R:391:3', 'test-add_predictors.R:399:2',
    'test-add_predictors.R:419:2', 'test-add_predictors.R:432:2',
    'test-input_sdm.R:11:3', 'test-names.R:37:3', 'test-occurrences_sdm.R:335:3',
    'test-pca_predictors.R:15:3', 'test-pca_predictors.R:32:3',
    'test-pdp_sdm.R:2:3', 'test-predict_sdm.R:40:3', 'test-predict_sdm.R:76:3',
    'test-predict_sdm.R:110:3', 'test-sdm_area.R:43:3', 'test-sdm_area.R:222:3',
    'test-sdm_area.R:228:3', 'test-sdm_area.R:235:3', 'test-sdm_area.R:273:3',
    'test-sdm_area.R:295:3', 'test-sdm_area.R:321:3', 'test-sdm_area.R:349:3',
    'test-sdm_area.R:356:3', 'test-sdm_area.R:362:3', 'test-sdm_area.R:369:3',
    'test-sdm_area.R:377:3', 'test-sdm_area.R:383:3', 'test-train_sdm.R:33:3',
    'test-train_sdm.R:50:3', 'test-train_sdm.R:67:3', 'test-train_sdm.R:82:3',
    'test-train_sdm.R:98:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-data_clean.R:4:3'): data_clean - normal path with sdm_area ───
  `... <- NULL` did not throw the expected warning.
  
  [ FAIL 1 | WARN 0 | SKIP 31 | PASS 574 ]
  Error: Test failures
  Execution halted