Running 'testthat.R' [12s]
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(fastbioclim)
  > 
  > test_check("fastbioclim")
  terra 1.8.86
  
  Attaching package: 'terra'
  
  The following objects are masked from 'package:testthat':
  
      compare, describe
  
  Linking to GEOS 3.13.0, GDAL 3.10.1, PROJ 9.5.1; sf_use_s2() is TRUE
  User forced 'tiled' workflow.
  User forced 'tiled' (out-of-core) workflow.
  Saving _problems/test-derive_bioclim-50.R
  Saving _problems/test-derive_bioclim-67.R
  Saving _problems/test-derive_bioclim-94.R
  Saving _problems/test-derive_bioclim-141.R
  Saving _problems/test-derive_statistics-34.R
  Saving _problems/test-derive_statistics-59.R
  Saving _problems/test-derive_statistics-87.R
  Saving _problems/test-derive_statistics-126.R
  [ FAIL 8 | WARN 10 | SKIP 0 | PASS 51 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-derive_bioclim.R:50:3'): Input validation and initial checks work correctly ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─fastbioclim (local) create_dummy_rasters(withr::local_tempdir()) at test-derive_bioclim.R:50:3
   2.   ├─terra::rast(...) at test-derive_bioclim.R:11: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-derive_bioclim.R:67:3'): File `overwrite` logic is correctly handled ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─fastbioclim (local) create_dummy_rasters(withr::local_tempdir()) at test-derive_bioclim.R:67:3
   2.   ├─terra::rast(...) at test-derive_bioclim.R:11: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-derive_bioclim.R:94:3'): Workflow dispatch logic selects the correct method ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─fastbioclim (local) create_dummy_rasters(local_dir) at test-derive_bioclim.R:94:3
   2.   ├─terra::rast(...) at test-derive_bioclim.R:11: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-derive_bioclim.R:141:3'): Static indices are passed correctly to the chosen workflow ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─fastbioclim (local) create_dummy_rasters(local_dir) at test-derive_bioclim.R:141:3
   2.   ├─terra::rast(...) at test-derive_bioclim.R:11: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-derive_statistics.R:34:3'): Input validation and initial checks work correctly ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─fastbioclim (local) create_dummy_stat_rasters(local_dir) at test-derive_statistics.R:34:3
   2.   ├─terra::rast(...) at test-derive_statistics.R:9: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-derive_statistics.R:59:3'): File `overwrite` logic correctly handles dynamic filenames ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─fastbioclim (local) create_dummy_stat_rasters(withr::local_tempdir()) at test-derive_statistics.R:59:3
   2.   ├─terra::rast(...) at test-derive_statistics.R:9: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-derive_statistics.R:87:3'): Workflow dispatch logic selects the correct method ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─fastbioclim (local) create_dummy_stat_rasters(local_dir) at test-derive_statistics.R:87:3
   2.   ├─terra::rast(...) at test-derive_statistics.R:9: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-derive_statistics.R:126:3'): Arguments are passed correctly to the chosen workflow ──
  Error: [rast] empty srs
  Backtrace:
      ▆
   1. └─fastbioclim (local) create_dummy_stat_rasters(local_dir) at test-derive_statistics.R:126:3
   2.   ├─terra::rast(...) at test-derive_statistics.R:9: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 8 | WARN 10 | SKIP 0 | PASS 51 ]
  Error:
  ! Test failures.
  Execution halted