* using log directory 'd:/Rcompile/CRANpkg/local/4.4/BIOMASS.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * using option '--no-vignettes' * checking for file 'BIOMASS/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'BIOMASS' version '2.2.4' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'BIOMASS' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [9s] OK * checking whether the package can be loaded with stated dependencies ... [10s] OK * checking whether the package can be unloaded cleanly ... [10s] OK * checking whether the namespace can be loaded with stated dependencies ... [9s] OK * checking whether the namespace can be unloaded cleanly ... [11s] OK * checking loading without being on the library search path ... [9s] OK * checking whether startup messages can be suppressed ... [10s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [27s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... [1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [23s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [33s] ERROR 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking running R code from vignettes ... SKIPPED * checking re-building of vignette outputs ... SKIPPED * checking PDF version of manual ... [15s] OK * checking HTML version of manual ... [8s] OK * DONE Status: 1 ERROR