Running ‘testthat.R’ [126s/258s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(BIOMASS)
  For more information on using BIOMASS, visit https://umr-amap.github.io/BIOMASS 
  
  Access the shiny version of the BIOMASS package at https://amap-apps.cirad.fr/apps/biomass-app/ 
  
  Using temporary cache
    It is recommended to use a permanent cache to avoid to re-download files on each session.
    See function createCache() or BIOMASS.cache option.
  > 
  > test_check("BIOMASS")
  trying URL 'https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/wc2-5.zip'
  Content type 'application/zip' length 19531044 bytes (18.6 MB)
  ==================================================
  downloaded 18.6 MB
  
  trying URL 'https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/CWD.zip'
  Content type 'application/zip' length 15777909 bytes (15.0 MB)
  ===========
  downloaded 3.6 MB
  
  Saving _problems/test-small_function-44.R
  Extracting raster metric...Extracting raster metric done.
  Extracting raster metric...Extracting raster metric done.
  Extracting raster metric...Extracting raster metric done.
  Extracting raster metric...Extracting raster metric done.
  Extracting raster metric...Extracting raster metric done.
  Extracting raster metric...Extracting raster metric done.
  Extracting raster metric...Extracting raster metric done.
  Extracting raster metric...Extracting raster metric done.
  Extracting raster metric...Extracting raster metric done.
  [ FAIL 1 | WARN 2 | SKIP 5 | PASS 498 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • On CRAN (5): 'test-AGBmonteCarlo.R:153:3', 'test-computeAGB.R:43:3',
    'test-correctTaxo.R:7:3', 'test-retrieveH.R:36:3',
    'test-small_function.R:24:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-small_function.R:44:3'): getBioclimParam ───────────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'rast': download from 'https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/CWD.zip' failed
  Backtrace:
      ▆
   1. ├─BIOMASS::getBioclimParam(coord) at test-small_function.R:44:3
   2. │ ├─terra::rast(cacheManager("CWD.bil"))
   3. │ └─BIOMASS::cacheManager("CWD.bil")
   4. │   └─utils::download.file(url, dest)
   5. └─base::.handleSimpleError(...)
   6.   └─base (local) h(simpleError(msg, call))
  
  [ FAIL 1 | WARN 2 | SKIP 5 | PASS 498 ]
  Error:
  ! Test failures.
  Execution halted