* using log directory 'd:/Rcompile/CRANpkg/local/4.4/medfateland.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 * checking for file 'medfateland/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'medfateland' version '2.8.1' * 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 'medfateland' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 13.3.0' * checking installed package size ... OK * checking package 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 ... [10s] OK * checking whether the package can be loaded with stated dependencies ... [11s] OK * checking whether the package can be unloaded cleanly ... [10s] OK * checking whether the namespace can be loaded with stated dependencies ... [10s] OK * checking whether the namespace can be unloaded cleanly ... [10s] OK * checking loading without being on the library search path ... [12s] OK * checking whether startup messages can be suppressed ... [11s] 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 ... [46s] OK * checking Rd files ... [2s] 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 ... [11s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking examples ... [26s] ERROR Running examples in 'medfateland-Ex.R' failed The error most likely occurred in: > ### Name: overland_routing > ### Title: Overland routing for TETIS sub-model > ### Aliases: overland_routing cell_neighbors > > ### ** Examples > > # Load example watershed data > data("example_watershed") > > # Get bounding box to determine limits > b <- sf::st_bbox(example_watershed) > b xmin ymin xmax ymax 401430 4671870 402830 4672570 > > # Define a raster topology, using terra package, > # with the same CRS as the watershed. In this example cells have 100 m side. > # Coordinates in the 'sf' object are assumed to be cell centers > r <-terra::rast(xmin = 401380, ymin = 4671820, xmax = 402880, ymax = 4672620, + nrow = 8, ncol = 15, crs = "epsg:32631") Warning: PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1) Error: [rast] empty srs Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [42s] ERROR Running 'testthat.R' [42s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(medfateland) Loading required package: medfate Package 'medfate' [ver. 4.8.4] Package 'medfateland' [ver. 2.8.1] > > test_check("medfateland") v No wildland locations with NULL values in column 'forest'. v All objects in column 'forest' have the right class. ! Wrong tree species names detected for 1 records (0.1%) in 1 wildland locations (1%). i Filtering out problematic tree/shrub records in 1 locations (1%) with missing/wrong forest data. ! Missing 'forest' data in 1 wildland locations (1%). v All objects in column 'forest' have the right class. v No missing/wrong values detected in key tree/shrub attributes of 'forest' objects. i Filling 1 missing forest(s) with default forest. ! Wrong tree species names detected for 1 records (0.1%) in 1 wildland locations (1%). ! Missing 'forest' data in 1 wildland locations (1%). Saving _problems/test_desc-10.R Package 'meteoland' [ver. 2.2.3] Saving _problems/test_land-7.R Saving _problems/test_land_day-7.R [ FAIL 3 | WARN 3 | SKIP 1 | PASS 34 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • empty test (1): ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_desc.R:9:1'): (code run outside of `test_that()`) ────────────── Error: [rast] empty srs Backtrace: ▆ 1. ├─terra::rast(...) at test_desc.R:9:1 2. └─terra::rast(...) 3. └─terra (local) .local(x = x, ...) 4. └─terra:::new_rast(...) 5. └─terra:::messages(r, "rast") 6. └─terra:::error(f, x@pntr$getError()) ── Error ('test_land.R:6:1'): (code run outside of `test_that()`) ────────────── Error: [rast] empty srs Backtrace: ▆ 1. ├─terra::rast(...) at test_land.R:6:1 2. └─terra::rast(...) 3. └─terra (local) .local(x = x, ...) 4. └─terra:::new_rast(...) 5. └─terra:::messages(r, "rast") 6. └─terra:::error(f, x@pntr$getError()) ── Error ('test_land_day.R:6:1'): (code run outside of `test_that()`) ────────── Error: [rast] empty srs Backtrace: ▆ 1. ├─terra::rast(...) at test_land_day.R:6:1 2. └─terra::rast(...) 3. └─terra (local) .local(x = x, ...) 4. └─terra:::new_rast(...) 5. └─terra:::messages(r, "rast") 6. └─terra:::error(f, x@pntr$getError()) [ FAIL 3 | WARN 3 | SKIP 1 | PASS 34 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... [26s] OK * checking HTML version of manual ... [8s] OK * DONE Status: 2 ERRORs