Running ‘testthat.R’ [33s/61s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mapme.biodiversity)
  > 
  > options(pillar.advice = FALSE)
  > mapme_options(verbose = FALSE)
  > test_check("mapme.biodiversity")
  
  Attaching package: 'purrr'
  
  The following object is masked from 'package:testthat':
  
      is_null
  
  Resource 'gfw_treecover' is already available.
  Resource 'gfw_lossyear' is already available.
  Resource 'key_biodiversity_areas' is already available.
  [ FAIL 2 | WARN 0 | SKIP 37 | PASS 491 ]
  
  ══ Skipped tests (37) ══════════════════════════════════════════════════════════
  • On CRAN (37): 'test-calc_burned_area.R:2:3',
    'test-calc_drought_indicator.R:49:3', 'test-calc_elevation.R:39:3',
    'test-calc_landcover.R:2:3', 'test-calc_population_count.R:34:3',
    'test-calc_precipitation_chelsa.R:36:3',
    'test-calc_precipitation_chirps.R:2:3', 'test-calc_precipitation_wc.R:35:3',
    'test-calc_slope.R:51:3', 'test-calc_soilproperties.R:2:3',
    'test-calc_temperature_max_wc.R:37:3', 'test-calc_temperature_min_wc.R:37:3',
    'test-calc_traveltime.R:38:3', 'test-calc_treecover_area.R:97:3',
    'test-calc_treecover_area_and_emissions.R:30:3',
    'test-calc_treecoverloss_emissions.R:27:3', 'test-calc_tri.R:33:3',
    'test-get_carbon.R:28:3', 'test-get_chirps.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'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-calc_gsw_time_series.R:9:3'): calc_gsw_time_series works ───────
  Error in `.probe_dsn(outdir)`: Destination '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/mapme.biodiversity/res' is not writeable via GDAL.
  Backtrace:
      ▆
   1. └─mapme.biodiversity::mapme_options(outdir = outdir, verbose = FALSE) at test-calc_gsw_time_series.R:9:3
   2.   └─mapme.biodiversity:::.probe_dsn(outdir)
  ── Error ('test-get_gsw_time_series.R:9:3'): get_gsw_time_series works ─────────
  Error in `.probe_dsn(outdir)`: Destination '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/mapme.biodiversity/res' is not writeable via GDAL.
  Backtrace:
      ▆
   1. └─mapme.biodiversity::mapme_options(outdir = outdir, verbose = FALSE) at test-get_gsw_time_series.R:9:3
   2.   └─mapme.biodiversity:::.probe_dsn(outdir)
  
  [ FAIL 2 | WARN 0 | SKIP 37 | PASS 491 ]
  Error: Test failures
  Execution halted