Running 'spelling.R' [0s]
  Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(snic)
  > 
  > test_check("snic")
  Saving _problems/test-grid-helpers-216.R
  Saving _problems/test-grid-helpers-249.R
  Saving _problems/test-grid-helpers-275.R
  Saving _problems/test-grid-helpers-303.R
  Saving _problems/test-grid-helpers-346.R
  Saving _problems/test-plot-140.R
  Saving _problems/test-snic-core-56.R
  Saving _problems/test-snic-generic-67.R
  [ FAIL 8 | WARN 33 | SKIP 0 | PASS 119 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-grid-helpers.R:211:5'): rectangular grids match counts and spacing for arrays and rasters ──
  Error in `.wgs84_to_xy.SpatRaster(x, seeds_wgs84)`: .seeds_type(seeds_wgs84) == "wgs84" is not TRUE
  Backtrace:
      ▆
   1. └─snic (local) expect_grid_consistency(...) at test-grid-helpers.R:211:5
   2.   └─snic:::.wgs84_to_rc(imgs$SpatRaster, rast_seeds) at test-grid-helpers.R:72:9
   3.     ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
   4.     └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
   5.       └─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
  ── Error ('test-grid-helpers.R:244:5'): diamond grids add shifted points while staying within padded bounds ──
  Error in `.wgs84_to_xy.SpatRaster(x, seeds_wgs84)`: .seeds_type(seeds_wgs84) == "wgs84" is not TRUE
  Backtrace:
      ▆
   1. └─snic (local) expect_grid_consistency(...) at test-grid-helpers.R:244:5
   2.   └─snic:::.wgs84_to_rc(imgs$SpatRaster, rast_seeds) at test-grid-helpers.R:72:9
   3.     ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
   4.     └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
   5.       └─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
  ── Error ('test-grid-helpers.R:270:5'): hexagonal grids generate additional offset rows for both backends ──
  Error in `.wgs84_to_xy.SpatRaster(x, seeds_wgs84)`: .seeds_type(seeds_wgs84) == "wgs84" is not TRUE
  Backtrace:
      ▆
   1. └─snic (local) expect_grid_consistency(...) at test-grid-helpers.R:270:5
   2.   └─snic:::.wgs84_to_rc(imgs$SpatRaster, rast_seeds) at test-grid-helpers.R:72:9
   3.     ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
   4.     └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
   5.       └─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
  ── Error ('test-grid-helpers.R:297:5'): random grids are reproducible, unique, and match count estimates ──
  Error in `.wgs84_to_xy.SpatRaster(x, seeds_wgs84)`: .seeds_type(seeds_wgs84) == "wgs84" is not TRUE
  Backtrace:
      ▆
   1. └─snic (local) expect_grid_consistency(...) at test-grid-helpers.R:297:5
   2.   └─snic:::.wgs84_to_rc(imgs$SpatRaster, rast_seeds) at test-grid-helpers.R:72:9
   3.     ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
   4.     └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
   5.       └─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
  ── Error ('test-grid-helpers.R:341:5'): single seed per dimension is centered for both backends ──
  Error in `.wgs84_to_xy.SpatRaster(x, seeds_wgs84)`: .seeds_type(seeds_wgs84) == "wgs84" is not TRUE
  Backtrace:
      ▆
   1. └─snic (local) expect_grid_consistency(...) at test-grid-helpers.R:341:5
   2.   └─snic:::.wgs84_to_rc(imgs$SpatRaster, rast_seeds) at test-grid-helpers.R:72:9
   3.     ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
   4.     └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
   5.       └─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
  ── Error ('test-plot.R:140:9'): seed overlays align for rc, xy, and wgs84 inputs ──
  Error: [project] output crs is not valid
  Backtrace:
      ▆
   1. └─snic:::.rc_to_wgs84(template, seeds_rc) at test-plot.R:140:9
   2.   ├─snic:::.xy_to_wgs84(x, seeds_xy)
   3.   └─snic:::.xy_to_wgs84.SpatRaster(x, seeds_xy)
   4.     ├─terra::project(v, "EPSG:4326")
   5.     └─terra::project(v, "EPSG:4326")
   6.       └─terra (local) .local(x, ...)
   7.         └─terra:::messages(x, "project")
   8.           └─terra:::error(f, x@pntr$getError())
  ── Error ('test-snic-core.R:56:5'): SpatRaster inputs accept WGS84 seeds ───────
  Error: [project] input crs is not valid
  Backtrace:
      ▆
   1. └─snic:::.rc_to_wgs84(backends$raster, seeds_rc) at test-snic-core.R:56:5
   2.   ├─snic:::.xy_to_wgs84(x, seeds_xy)
   3.   └─snic:::.xy_to_wgs84.SpatRaster(x, seeds_xy)
   4.     ├─terra::project(v, "EPSG:4326")
   5.     └─terra::project(v, "EPSG:4326")
   6.       └─terra (local) .local(x, ...)
   7.         └─terra:::messages(x, "project")
   8.           └─terra:::error(f, x@pntr$getError())
  ── Error ('test-snic-generic.R:67:5'): SpatRaster: round-trip conversions with defined CRS (WGS84) are consistent ──
  Error: [project] input crs is not valid
  Backtrace:
       ▆
    1. ├─snic:::.wgs84_to_rc(rast, .rc_to_wgs84(rast, seeds_rc)) at test-snic-generic.R:67:5
    2. │ ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
    3. │ └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
    4. │   ├─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
    5. │   └─snic:::.seeds_type(seeds_wgs84)
    6. │     ├─c("r", "c") %in% colnames(seeds)
    7. │     └─base::colnames(seeds)
    8. │       └─base::is.data.frame(x)
    9. └─snic:::.rc_to_wgs84(rast, seeds_rc)
   10.   ├─snic:::.xy_to_wgs84(x, seeds_xy)
   11.   └─snic:::.xy_to_wgs84.SpatRaster(x, seeds_xy)
   12.     ├─terra::project(v, "EPSG:4326")
   13.     └─terra::project(v, "EPSG:4326")
   14.       └─terra (local) .local(x, ...)
   15.         └─terra:::messages(x, "project")
   16.           └─terra:::error(f, x@pntr$getError())
  
  [ FAIL 8 | WARN 33 | SKIP 0 | PASS 119 ]
  Error:
  ! Test failures.
  Execution halted