* using log directory 'd:/Rcompile/CRANpkg/local/4.4/hydflood.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 'hydflood/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'hydflood' version '0.5.10' * 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 'hydflood' 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 ... [14s] OK * checking whether the package can be loaded with stated dependencies ... [15s] OK * checking whether the package can be unloaded cleanly ... [15s] OK * checking whether the namespace can be loaded with stated dependencies ... [12s] OK * checking whether the namespace can be unloaded cleanly ... [14s] OK * checking loading without being on the library search path ... [15s] OK * checking whether startup messages can be suppressed ... [14s] 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 ... [36s] OK * checking Rd files ... [15s] 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 ... [20s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [17s] ERROR Running 'testthat.R' [16s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(hydflood) Loading required package: sf Linking to GEOS 3.13.0, GDAL 3.10.1, PROJ 9.5.1; sf_use_s2() is TRUE Loading required package: terra terra 1.8.86 Attaching package: 'terra' The following objects are masked from 'package:testthat': compare, describe Loading required package: raster Loading required package: sp Loading required package: hyd1d 'df.gauging_data' locally stored at D:\temp\2025_12_05_01_50_00_7414\RtmpAdXrA0/df.gauging_data_latest.RDS was last downloaded 2025-12-05 08:55:17 CET > > test_check("hydflood") Saving _problems/test_waterDepth-18.R [ FAIL 1 | WARN 1 | SKIP 9 | PASS 15 ] ══ Skipped tests (9) ═══════════════════════════════════════════════════════════ • empty test (9): 'test_flood1.R:6:1', 'test_flood1.R:95:1', 'test_flood1.R:116:1', 'test_flood2.R:6:1', 'test_flood2.R:66:1', 'test_flood2.R:87:1', 'test_flood3.R:6:1', 'test_flood3.R:76:1', 'test_waterDepth.R:173:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_waterDepth.R:17:5'): waterDepth: checks ──────────────────────── Error: [rast] empty srs Backtrace: ▆ 1. ├─terra::rast(crs = crs("EPSG:25833")) at test_waterDepth.R:17:5 2. ├─terra::rast(crs = crs("EPSG:25833")) 3. │ └─terra (local) .local(x = x, ...) 4. │ └─terra:::new_rast(...) 5. │ └─terra:::character_crs(crs, "rast") 6. ├─terra::crs("EPSG:25833") 7. └─terra::crs("EPSG:25833") 8. └─terra (local) .local(x, ...) 9. ├─terra::rast(crs = x) 10. └─terra::rast(crs = x) 11. └─terra (local) .local(x = x, ...) 12. └─terra:::new_rast(...) 13. └─terra:::messages(r, "rast") 14. └─terra:::error(f, x@pntr$getError()) [ FAIL 1 | WARN 1 | SKIP 9 | PASS 15 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [17s] OK * checking PDF version of manual ... [24s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 1 ERROR