Running ‘testthat.R’ [55s/181s]
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
  
  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")
  NULL
  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 15.0 MB
  
  trying URL 'https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/E.zip'
  Content type 'application/zip' length 31208287 bytes (29.8 MB)
  =========
  downloaded 5.4 MB
  
  trying URL 'https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/E.zip'
  Content type 'application/zip' length 31208287 bytes (29.8 MB)
  ==================================================
  downloaded 29.8 MB
  
  [ FAIL 1 | WARN 2 | SKIP 10 | PASS 453 ]
  
  ══ Skipped tests (10) ══════════════════════════════════════════════════════════
  • On CRAN (10): 'test-AGBmonteCarlo.R:153:3', 'test-check_coord_plot.R:106:3',
    'test-check_coord_plot.R:131:3', 'test-computeAGB.R:43:3',
    'test-correctTaxo.R:5:3', 'test-modelHD.R:120:3', 'test-retrieveH.R:36:3',
    'test-small_function.R:22:3', 'test-small_function.R:47:3',
    'test-subplot_summary.R:36:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-small_function.R:112:3'): Michaelis function ───────────────────
  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/E.zip' failed
  Backtrace:
      ▆
   1. ├─base::data.frame(H = retrieveH(D, coord = coord)$H, D = D) at test-small_function.R:112:3
   2. ├─BIOMASS::retrieveH(D, coord = coord)
   3. │ └─BIOMASS::computeE(coord)
   4. │   ├─terra::rast(cacheManager("E.bil"))
   5. │   └─BIOMASS::cacheManager("E.bil")
   6. │     └─utils::download.file(url, dest)
   7. └─base::.handleSimpleError(...)
   8.   └─base (local) h(simpleError(msg, call))
  
  [ FAIL 1 | WARN 2 | SKIP 10 | PASS 453 ]
  Deleting unused snapshots:
  • check_coord_plot/check-plot-201-rast-prop.svg
  • check_coord_plot/check-plot-201-trust-f.svg
  • check_coord_plot/check-plot-204.svg
  • subplot_summary/subplot-summary-multiple-metrics-204.svg
  • subplot_summary/subplot-summary-multiple-plot-201.svg
  • subplot_summary/subplot-summary-multiple-plot-204.svg
  • subplot_summary/subplot-summary-proj-coords.svg
  • subplot_summary/subplot-summary-quantile.svg
  Error: Test failures
  Execution halted