Running 'testthat.R' [25s]
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")
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [using ordinary kriging]
  [using ordinary kriging]
  [using ordinary kriging]
  [using ordinary kriging]
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 212 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-crossValidate.R:52:3'): crossValidate output check ─────────────
  Error in `interpBathy(outline, trainDat, x = x, y = y, z = z, zeros = zeros, 
      separation = separation, crsUnits = crsUnits, res = res, 
      fact = fact, method = method, nmax = nmax, idp = idp, model = model, 
      psill = psill, range = range, nugget = nugget, kappa = kappa)`: nmax cannot exceed number of observations in df
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-crossValidate.R:52:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─rLakeHabitat::crossValidate(...)
   5.   └─rLakeHabitat::interpBathy(...)
  
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 212 ]
  Error: Test failures
  Execution halted