Running 'testthat.R' [81s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(exactextractr)
  > 
  > test_check("exactextractr")
  Saving _problems/test_coverage_fraction-90.R
  Saving _problems/test_exact_resample_terra-37.R
  Saving _problems/test_exact_resample_terra-51.R
  Saving _problems/test_exact_resample_terra-68.R
  Saving _problems/test_exact_resample_terra-97.R
  Saving _problems/test_exact_resample_terra-133.R
  [ FAIL 6 | WARN 7 | SKIP 0 | PASS 460 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_coverage_fraction.R:90:3'): Raster returned by coverage_fraction has same properties as the input (terra) ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. ├─terra::rast(...) at test_coverage_fraction.R:90:3
   2. └─terra::rast(...)
   3.   └─terra (local) .local(x = x, ...)
   4.     └─terra:::new_rast(...)
   5.       └─terra:::messages(r, "rast")
   6.         └─terra:::error(f, x@pntr$getError())
  ── Error ('test_exact_resample_terra.R:36:3'): resampling can be weighted with coverage areas instead of coverage fractions ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. ├─terra::rast(...) at test_exact_resample_terra.R:36:3
   2. └─terra::rast(...)
   3.   └─terra (local) .local(x = x, ...)
   4.     └─terra:::new_rast(...)
   5.       └─terra:::messages(r, "rast")
   6.         └─terra:::error(f, x@pntr$getError())
  ── Error ('test_exact_resample_terra.R:51:3'): an R function can be used for resampling ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─exactextractr:::make_square_rast(1:100) at test_exact_resample_terra.R:51:3
   2.   ├─terra::rast(...) at ./helper_functions.R:54:3
   3.   └─terra::rast(...)
   4.     └─terra (local) .local(x = x, ...)
   5.       └─terra:::new_rast(...)
   6.         └─terra:::messages(r, "rast")
   7.           └─terra:::error(f, x@pntr$getError())
  ── Error ('test_exact_resample_terra.R:68:3'): a multi-layer SpatRaster can be provided to an R summary function ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─exactextractr:::make_square_rast(1:100, crs = "EPSG:4326") at test_exact_resample_terra.R:68:3
   2.   ├─terra::rast(...) at ./helper_functions.R:54:3
   3.   └─terra::rast(...)
   4.     └─terra (local) .local(x = x, ...)
   5.       └─terra:::new_rast(...)
   6.         └─terra:::messages(r, "rast")
   7.           └─terra:::error(f, x@pntr$getError())
  ── Error ('test_exact_resample_terra.R:97:3'): error thrown if R function returns non-scalar value ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─exactextractr:::make_square_rast(1:100) at test_exact_resample_terra.R:97:3
   2.   ├─terra::rast(...) at ./helper_functions.R:54:3
   3.   └─terra::rast(...)
   4.     └─terra (local) .local(x = x, ...)
   5.       └─terra:::new_rast(...)
   6.         └─terra:::messages(r, "rast")
   7.           └─terra:::error(f, x@pntr$getError())
  ── Error ('test_exact_resample_terra.R:133:3'): error thrown if R function has wrong signature ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─exactextractr:::make_square_rast(1:100) at test_exact_resample_terra.R:133:3
   2.   ├─terra::rast(...) at ./helper_functions.R:54:3
   3.   └─terra::rast(...)
   4.     └─terra (local) .local(x = x, ...)
   5.       └─terra:::new_rast(...)
   6.         └─terra:::messages(r, "rast")
   7.           └─terra:::error(f, x@pntr$getError())
  
  [ FAIL 6 | WARN 7 | SKIP 0 | PASS 460 ]
  Error:
  ! Test failures.
  Execution halted