Running ‘testthat.R’ [13s/16s]
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
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [inverse distance weighted interpolation]
  [1] "Raster Interpolated in CRS:  GEOGCRS[\"WGS 84 (CRS84)\",\n    DATUM[\"World Geodetic System 1984\",\n        ELLIPSOID[\"WGS 84\",6378137,298.257223563,\n            LENGTHUNIT[\"metre\",1]]],\n    PRIMEM[\"Greenwich\",0,\n        ANGLEUNIT[\"degree\",0.0174532925199433]],\n    CS[ellipsoidal,2],\n        AXIS[\"geodetic longitude (Lon)\",east,\n            ORDER[1],\n            ANGLEUNIT[\"degree\",0.0174532925199433]],\n        AXIS[\"geodetic latitude (Lat)\",north,\n            ORDER[2],\n            ANGLEUNIT[\"degree\",0.0174532925199433]],\n    USAGE[\n        SCOPE[\"unknown\"],\n        AREA[\"World\"],\n        BBOX[-90,-180,90,180]],\n    ID[\"OGC\",\"CRS84\"]]"
  [using ordinary kriging]
  [using ordinary kriging]
  [using ordinary kriging]
  [using ordinary kriging]
  [1] "Raster Interpolated in CRS:  GEOGCRS[\"WGS 84 (CRS84)\",\n    DATUM[\"World Geodetic System 1984\",\n        ELLIPSOID[\"WGS 84\",6378137,298.257223563,\n            LENGTHUNIT[\"metre\",1]]],\n    PRIMEM[\"Greenwich\",0,\n        ANGLEUNIT[\"degree\",0.0174532925199433]],\n    CS[ellipsoidal,2],\n        AXIS[\"geodetic longitude (Lon)\",east,\n            ORDER[1],\n            ANGLEUNIT[\"degree\",0.0174532925199433]],\n        AXIS[\"geodetic latitude (Lat)\",north,\n            ORDER[2],\n            ANGLEUNIT[\"degree\",0.0174532925199433]],\n    USAGE[\n        SCOPE[\"unknown\"],\n        AREA[\"World\"],\n        BBOX[-90,-180,90,180]],\n    ID[\"OGC\",\"CRS84\"]]"
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 215 ]
  
  ══ 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)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─rLakeHabitat::crossValidate(...)
   5.   └─rLakeHabitat::interpBathy(...)
  
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 215 ]
  Error:
  ! Test failures.
  Execution halted