Running 'testthat.R' [21s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(rLakeHabitat)
  > 
  > test_check("rLakeHabitat")
  Saving _problems/test-crossValidate-52.R
  Saving _problems/test-interpBathy-51.R
  Saving _problems/test-rarify-32.R
  [ FAIL 3 | WARN 9 | SKIP 0 | PASS 209 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-crossValidate.R:52:3'): crossValidate output check ─────────────
  Error: [rast] empty srs
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-crossValidate.R:52:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rLakeHabitat::crossValidate(...)
    5.   └─rLakeHabitat::interpBathy(...)
    6.     └─rLakeHabitat (local) get_res(outline, res, crsUnits)
    7.       ├─terra::crs("EPSG:32601")
    8.       └─terra::crs("EPSG:32601")
    9.         └─terra (local) .local(x, ...)
   10.           ├─terra::rast(crs = x)
   11.           └─terra::rast(crs = x)
   12.             └─terra (local) .local(x = x, ...)
   13.               └─terra:::new_rast(...)
   14.                 └─terra:::messages(r, "rast")
   15.                   └─terra:::error(f, x@pntr$getError())
  ── Error ('test-interpBathy.R:51:3'): interpBathy output check ─────────────────
  Error: [rast] empty srs
  Backtrace:
       ▆
    1. ├─testthat::expect_s4_class(...) at test-interpBathy.R:51:3
    2. │ └─testthat::quasi_label(enquo(object))
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rLakeHabitat::interpBathy(...)
    5.   └─rLakeHabitat (local) get_res(outline, res, crsUnits)
    6.     ├─terra::crs("EPSG:32601")
    7.     └─terra::crs("EPSG:32601")
    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())
  ── Error ('test-rarify.R:32:3'): rarify output check ───────────────────────────
  Error: [rast] empty srs
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-rarify.R:32:3
    2. │ └─testthat::quasi_label(enquo(object))
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rLakeHabitat::rarify(hull, dat, "x", "y", "z", res = 100)
    5.   └─rLakeHabitat (local) get_res(outline, res, crsUnits)
    6.     ├─terra::crs("EPSG:32601")
    7.     └─terra::crs("EPSG:32601")
    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 3 | WARN 9 | SKIP 0 | PASS 209 ]
  Error:
  ! Test failures.
  Execution halted