Running ‘testthat.R’ [51s/82s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mapme.biodiversity)
  mapme.biodiversity 0.9.6
  > 
  > options(pillar.advice = FALSE)
  > mapme_options(verbose = FALSE)
  > test_check("mapme.biodiversity")
  Resource 'gsw_time_series' is already available.
  Resource 'gfw_treecover' is already available.
  Resource 'gfw_lossyear' is already available.
  Resource 'key_biodiversity_areas' is already available.
  Saving _problems/test-spatial-utils-68.R
    adding: gfw_sample.gpkg (deflated 96%)
  [ FAIL 1 | WARN 9 | SKIP 43 | PASS 544 ]
  
  ══ Skipped tests (43) ══════════════════════════════════════════════════════════
  • On CRAN (43): 'test-calc_burned_area.R:2:3', 'test-calc_carbon.R:3:3',
    'test-calc_carbon.R:38:3', 'test-calc_carbon.R:72:3',
    'test-calc_deforestation_drivers.R:2:3', 'test-calc_drought_indicator.R:1:1',
    'test-calc_elevation.R:1:1', 'test-calc_landcover.R:2:3',
    'test-calc_population_count.R:1:1', 'test-calc_precipitation_chelsa.R:1:1',
    'test-calc_precipitation_wc.R:1:1', 'test-calc_slope.R:1:1',
    'test-calc_soilproperties.R:2:3', 'test-calc_temperature_max_wc.R:1:1',
    'test-calc_temperature_min_wc.R:1:1', 'test-calc_traveltime.R:1:1',
    'test-calc_traveltime_2000.R:1:1', 'test-calc_treecover_area.R:72:1',
    'test-calc_treecover_area_and_emissions.R:1:1',
    'test-calc_treecoverloss_emissions.R:1:1', 'test-calc_tri.R:1:1',
    'test-get_carbon.R:2:3', 'test-get_carbon.R:29:3', 'test-get_chelsa.R:2:3',
    'test-get_esalandcover.R:2:3', 'test-get_fritz_et_al.R:2:3',
    'test-get_gfw_emissions.R:2:3', 'test-get_gfw_lossyear.R:2:3',
    'test-get_gfw_treecover.R:7:3', 'test-get_gmw.R:2:3', 'test-get_gsw.R:2:3',
    'test-get_hfp.R:10:3', 'test-get_mcd64A1.R:2:3', 'test-get_nasa_grace.R:2:3',
    'test-get_nasa_srtm.R:2:3', 'test-get_nelson_et_al.R:2:3',
    'test-get_resources.R:2:3', 'test-get_soilgrids.R:2:3',
    'test-get_teow.R:2:3', 'test-get_ucdp_ged.R:3:3', 'test-get_worldpop.R:2:3',
    'test-ipbes.R:2:3', 'test-ipbes.R:11:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-spatial-utils.R:68:3'): VRT deletion works as expected ─────────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map(resources, function(resource_name) {     resource <- avail_resources[[resource_name]]     if (nrow(resource) == 0L) {         stop(sprintf("Resource %s is empty", resource_name), call. = FALSE)     }     resource_type <- unique(resource[["type"]])     reader <- switch(resource_type, raster = .read_raster, vector = .read_vector, stop(sprintf("Resource type '%s' currently not supported", resource_type)))     reader(x, resource, mode) })`: i In index: 1.
  Caused by error in `purrr::map2()`:
  i In index: 1.
  Caused by error:
  ! [rast] file does not exist: /tmp/Rtmp524We5/file35461e7263c763.vrt
  
  [ FAIL 1 | WARN 9 | SKIP 43 | PASS 544 ]
  Error:
  ! Test failures.
  Execution halted