Running ‘testthat.R’ [31s/220s]
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 [40.2s]
  
  ℹ Preparing data...
  ✔ Prepared [94ms]
  
  ✔ 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 [1ms]
  
  ✔ Cite this dataset using <https://doi.org/10.1016/j.dib.2017.05.007>
  i Downloading data...
  v Downloaded [1ms]
  
  v Cite this dataset using <https://doi.org/10.1016/j.dib.2017.05.007>
  i Downloading data...
  v Downloaded [1ms]
  
  v Cite this dataset using <https://doi.org/10.1016/j.dib.2017.05.007>
  i Downloading data...
  v Downloaded [1ms]
  
  v Cite this dataset using <https://doi.org/10.1016/j.dib.2017.05.007>
  i Downloading data...
  v Downloaded [2ms]
  
  v Cite this dataset using <https://doi.org/10.1016/j.dib.2017.05.007>
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_forest_eutrees4f()` failed to retrieve the data. Service might be currently unavailable
  Archive:  /var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T//Rtmps2W8RJ/36704304.zip
    End-of-central-directory signature not found.  Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive.  In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.
  unzip:  cannot find zipfile directory in one of /var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T//Rtmps2W8RJ/36704304.zip or
          /var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T//Rtmps2W8RJ/36704304.zip.zip, and cannot find /var/folders/2b/t0kwbtmn3p7brv2mvx39c9cr0000gn/T//Rtmps2W8RJ/36704304.zip.ZIP, period.
  i Downloading data...
  v Downloaded [4.5s]
  
  i Preparing data...
  v Prepared [11ms]
  
  v Visit <https://www.miteco.gob.es/es/biodiversidad/servicios/banco-datos-naturaleza/informacion-disponible/mfe50.html> for more information
  i Downloading data...
  v Downloaded [3.4s]
  
  i Preparing data...
  v Prepared [11ms]
  
  v Visit <https://www.miteco.gob.es/es/biodiversidad/servicios/banco-datos-naturaleza/informacion-disponible/mfe50.html> for more information
  i Downloading data...
  v Downloaded [3.5s]
  
  i Preparing data...
  v Prepared [16ms]
  
  v Visit <https://www.miteco.gob.es/es/biodiversidad/servicios/banco-datos-naturaleza/informacion-disponible/mfe50.html> for more information
  ℹ Downloading data...
  ✖ Download failed [2ms]
  
  ✖ `fd_pathogens_defid2()` failed to retrieve the data. Service might be currently unavailable
  ℹ Downloading data...
  ✔ Downloaded [6ms]
  
  ℹ Preparing data...
  ✖ Preparing data... [54ms]
  
  [ FAIL 2 | WARN 3 | SKIP 14 | PASS 17 ]
  
  ══ Skipped tests (14) ══════════════════════════════════════════════════════════
  • 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 ════════════════════════════════════════════════════════════════
  ── Error ('test-eutrees4f.R:14:3'): (code run outside of `test_that()`) ────────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map(c("2005", "2035", "2065", "2065"), function(x) fd_forest_eutrees4f(species = metadata_forestdata$eutrees4f_species[2], 
      period = x, quiet = TRUE))`: ℹ In index: 1.
  Caused by error:
  ! [rast] filename is empty. Provide a valid filename
  Backtrace:
       ▆
    1. ├─purrr::map(...) at test-eutrees4f.R:12:1
    2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    3. │   ├─purrr:::with_indexed_errors(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   ├─purrr:::call_with_cleanup(...)
    6. │   └─forestdata (local) .f(.x[[i]], ...)
    7. │     └─forestdata::fd_forest_eutrees4f(...) at test-eutrees4f.R:14:3
    8. │       ├─terra::rast(rast.path)
    9. │       └─terra::rast(rast.path)
   10. │         └─terra (local) .local(x, ...)
   11. │           └─terra:::error("rast", "filename is empty. Provide a valid filename")
   12. │             └─base::stop("[", f, "] ", emsg, ..., call. = FALSE)
   13. └─base::.handleSimpleError(...)
   14.   └─purrr (local) h(simpleError(msg, call))
   15.     └─cli::cli_abort(...)
   16.       └─rlang::abort(...)
  ── 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/Rtmps2W8RJ/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 2 | WARN 3 | SKIP 14 | PASS 17 ]
  Error: Test failures
  Execution halted