Running ‘testthat.R’ [1m/16m]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(forestdata)
  > 
  > test_check("forestdata")
  ℹ Downloading data...
  ✔ Downloaded [49.2s]
  
  ℹ Preparing data...
  ✔ Prepared [46ms]
  
  ✔ Cite this dataset using <https://doi.org/10.1111/gcb.16302>
  terra 1.8.50
  
  Attaching package: 'terra'
  
  The following objects are masked from 'package:testthat':
  
      compare, describe
  
  ℹ Downloading data...
  ✔ Downloaded [3ms]
  
  ✔ Cite this dataset using <https://doi.org/10.1016/j.dib.2017.05.007>
  i Downloading data...
  x Download failed [3.7s]
  
  i Downloading data...
  v Downloaded [1ms]
  
  v Cite this dataset using <https://doi.org/10.1016/j.dib.2017.05.007>
  ℹ Downloading data...
  ✖ Download failed [3ms]
  
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  ✖ `fd_forest_spain_mfe50()` failed to retrieve the data. Service might be currently unavailable
  i Downloading data...
  x Download failed [2ms]
  
  x `fd_forest_spain_mfe50()` failed to retrieve the data. Service might be currently unavailable
  i Downloading data...
  x Download failed [2ms]
  
  x `fd_forest_spain_mfe50()` failed to retrieve the data. Service might be currently unavailable
  i Downloading data...
  x Download failed [2ms]
  
  x `fd_forest_spain_mfe50()` failed to retrieve the data. Service might be currently unavailable
  x `fd_forest_france` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_pathogens_defid2()` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✔ Downloaded [5ms]
  
  ℹ Preparing data...
  ✖ Preparing data... [72ms]
  
  [ FAIL 6 | WARN 5 | SKIP 19 | PASS 18 ]
  
  ══ Skipped tests (19) ══════════════════════════════════════════════════════════
  • Not a raster object, skipping test on atlas (5): 'test-eutrees4f.R:82:5',
    'test-eutrees4f.R:100:5', 'test-eutrees4f.R:118:5', 'test-eutrees4f.R:138:5',
    'test-eutrees4f.R:163:5'
  • On CRAN (14): 'test-GLAD.R:18:3', 'test-GLAD.R:35:3', 'test-GLAD.R:54:3',
    'test-canopy-height.R:20:3', 'test-canopy-height.R:29:3',
    'test-canopy-height.R:45:3', 'test-canopy-height.R:59:3',
    'test-canopy-height.R:94:3', 'test-forest-country.R:36:3',
    'test-land-cover.R:8:3', 'test-land-cover.R:22:3', 'test-land-cover.R:63:3',
    'test-land-cover.R:84:3', 'test-land-cover.R:134:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-chorological-maps.R:20:3'): All natural range data is downloaded ──
  Expected `purrr::map(metadata_forestdata$chorological_species[1:3], fd_forest_chorological)` to run without any errors.
  i Actually got a <purrr_error_indexed> with text:
    i In index: 1.
    Caused by error in `.f()`:
    ! There's no range = `nat` for Abies alba
  ── Failure ('test-forest-country.R:16:3'): Data is downloaded properly ─────────
  class(lugo_mfe)[1] (`actual`) not equal to "sf" (`expected`).
  
  `actual`:   "character"
  `expected`: "sf"       
  ── Error ('test-forest-country.R:17:3'): Data is downloaded properly ───────────
  Error in `expect_compare(">", act, exp)`: Result of comparison must be a single logical value
  Backtrace:
      ▆
   1. └─testthat::expect_gt(nrow(lugo_mfe), 10) at test-forest-country.R:17:3
   2.   └─testthat:::expect_compare(">", act, exp)
   3.     └─rlang::abort("Result of comparison must be a single logical value")
  ── Failure ('test-forest-country.R:59:3'): Data is downloaded properly for DB Foret v1 ──
  class(hautes_alpes_forest_v1)[1] (`actual`) not equal to "sf" (`expected`).
  
  `actual`:   "character"
  `expected`: "sf"       
  ── Error ('test-forest-country.R:60:3'): Data is downloaded properly for DB Foret v1 ──
  Error in `expect_compare(">", act, exp)`: Result of comparison must be a single logical value
  Backtrace:
      ▆
   1. └─testthat::expect_gt(nrow(hautes_alpes_forest_v1), 10) at test-forest-country.R:60:3
   2.   └─testthat:::expect_compare(">", act, exp)
   3.     └─rlang::abort("Result of comparison must be a single logical value")
  ── Error ('test-pathogens.R:10:1'): (code run outside of `test_that()`) ────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/private/var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T/RtmpLOWjHn/defid2.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
  Backtrace:
      ▆
   1. └─forestdata::fd_pathogens_defid2(agent = metadata_forestdata$defid2_list$pathogens[50]) at test-pathogens.R:10:1
   2.   └─sf::read_sf(dsn = file_path, query = stringr::str_glue("SELECT * FROM exact_polygons {tmp.query};"))
   3.     ├─sf::st_read(...)
   4.     └─sf:::st_read.character(...)
   5.       └─sf:::CPL_read_ogr(...)
  
  [ FAIL 6 | WARN 5 | SKIP 19 | PASS 18 ]
  Error: Test failures
  Execution halted