Running ‘testthat.R’ [22s/124s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(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")
  trying URL 'https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/E.zip'
  trying URL 'https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/E.zip'
  [ FAIL 2 | WARN 10 | SKIP 0 | PASS 441 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_01_small_function.R:117:3): Michaelis function ──────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'raster': cannot open URL 'https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/E.zip'
  Backtrace:
      ▆
   1. ├─base::data.frame(H = retrieveH(D, coord = coord)$H, D = D) at test_01_small_function.R:117:2
   2. ├─BIOMASS::retrieveH(D, coord = coord)
   3. │ └─BIOMASS::computeE(coord)
   4. │   ├─raster::raster(cacheManager("E.bil"))
   5. │   └─BIOMASS::cacheManager("E.bil")
   6. │     └─utils::download.file(url, dest)
   7. └─base::.handleSimpleError(...)
   8.   └─base h(simpleError(msg, call))
  ── Error (test_01_small_function.R:124:3): Weibull function ────────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'raster': cannot open URL 'https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/E.zip'
  Backtrace:
      ▆
   1. ├─base::data.frame(H = retrieveH(D, coord = coord)$H, D = D) at test_01_small_function.R:124:2
   2. ├─BIOMASS::retrieveH(D, coord = coord)
   3. │ └─BIOMASS::computeE(coord)
   4. │   ├─raster::raster(cacheManager("E.bil"))
   5. │   └─BIOMASS::cacheManager("E.bil")
   6. │     └─utils::download.file(url, dest)
   7. └─base::.handleSimpleError(...)
   8.   └─base h(simpleError(msg, call))
  
  [ FAIL 2 | WARN 10 | SKIP 0 | PASS 441 ]
  Error: Test failures
  Execution halted