Running 'testthat.R' [138s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(BIOMASS)
  The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
  which was just loaded, will retire in October 2023.
  Please refer to R-spatial evolution reports for details, especially
  https://r-spatial.org/r/2023/05/15/evolution4.html.
  It may be desirable to make the sf package available;
  package maintainers should consider adding sf to Suggests:.
  The sp package is now running under evolution status 2
       (status 2 uses the sf package in place of rgdal)
  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")
  pj_obj_create: Cannot find proj.db
  pj_obj_create: Cannot find proj.db
  pj_obj_create: Cannot find proj.db
  pj_obj_create: Cannot find proj.db
  pj_obj_create: Cannot find proj.db
  pj_obj_create: Cannot find proj.db
  pj_obj_create: Cannot find proj.db
  pj_obj_create: Cannot find proj.db
  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 25.6 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 2.2 MB
  
  pj_obj_create: Cannot find proj.db
  [ FAIL 2 | WARN 25 | SKIP 21 | PASS 188 ]
  
  ══ Skipped tests (21) ══════════════════════════════════════════════════════════
  • On CRAN (21): 'test_00_modelHD.R:15:7', 'test_00_modelHD.R:15:7',
    'test_00_modelHD.R:15:7', 'test_00_modelHD.R:15:7', 'test_00_modelHD.R:15:7',
    'test_00_modelHD.R:15:7', 'test_00_modelHD.R:15:7', 'test_00_modelHD.R:15:7',
    'test_00_modelHD.R:49:3', 'test_00_modelHD.R:57:3', 'test_00_modelHD.R:75:3',
    'test_02_getWoodDensity.R:13:5', 'test_02_getWoodDensity.R:66:5',
    'test_03_AGBmonteCarlo.R:23:3', 'test_03_AGBmonteCarlo.R:104:3',
    'test_03_AGBmonteCarlo.R:128:3', 'test_03_AGBmonteCarlo.R:176:3',
    'test_03_AGBmonteCarlo.R:203:3', 'test_03_AGBmonteCarlo.R:227:3',
    'test_03_AGBmonteCarlo.R:253:3', 'test_03_AGBmonteCarlo.R:280:3'
  
  ══ 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': 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_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 (local) 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': 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_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 (local) h(simpleError(msg, call))
  
  [ FAIL 2 | WARN 25 | SKIP 21 | PASS 188 ]
  Error: Test failures
  Execution halted