Running 'testthat.R' [32s]
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")
  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
  NULL
  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
  
  pj_obj_create: Cannot find proj.db
  [ FAIL 1 | WARN 0 | SKIP 9 | PASS 452 ]
  
  ══ Skipped tests (9) ═══════════════════════════════════════════════════════════
  • On CRAN (9): '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-subplot_summary.R:36:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-small_function.R:42:3'): getBioclimParam ───────────────────────
  Error in `methods::as(x, "SpatRaster")`: no method or default for coercing "NULL" to "SpatRaster"
  Backtrace:
      ▆
   1. └─BIOMASS::getBioclimParam(coord) at test-small_function.R:42:3
   2.   ├─terra::rast(cacheManager("bio4.bil"))
   3.   └─terra::rast(cacheManager("bio4.bil"))
   4.     └─methods::as(x, "SpatRaster")
  
  [ FAIL 1 | WARN 0 | SKIP 9 | PASS 452 ]
  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