Running 'testthat.R' [17s]
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_15_01_50_00_10827\Rtmpk993li/df.gauging_data_latest.RDS
  was last downloaded 2025-12-15 11:30:58 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