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(ClimaRep)
  > 
  > test_check("ClimaRep")
  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
  Starting iterative VIF filtering process
   - Removing variable with highest VIF ( 16.45 ): varD
   - Removing variable with highest VIF ( 7.26 ): varB
  VIF filtering process completed
  
  Attaching package: 'tidyterra'
  
  The following object is masked from 'package:stats':
  
      filter
  
  Starting iterative VIF filtering process
   - Removing variable with highest VIF ( 15.55 ): varD
   - Removing variable with highest VIF ( 7.07 ): varB
  VIF filtering process completed
  Establishing output file structure
  Validating and adjusting Coordinate Reference Systems (CRS)
  Adjusting CRS of climate_variables to match the polygon's system (EPSG:4326).
  Saving _problems/test-mh_rep-54.R
  Starting iterative VIF filtering process
   - Removing variable with highest VIF ( 15.55 ): varD
   - Removing variable with highest VIF ( 7.07 ): varB
  VIF filtering process completed
  Establishing output file structure
  Validating and adjusting Coordinate Reference Systems (CRS)
  Adjusting CRS of present_climate_variables to match the polygon's system
  Saving _problems/test-mh_rep_ch-53.R
  Starting iterative VIF filtering process
   - Removing variable with highest VIF ( 15.55 ): varD
   - Removing variable with highest VIF ( 7.07 ): varB
  VIF filtering process completed
  Establishing output file structure
  Validating and adjusting Coordinate Reference Systems (CRS)
  Adjusting CRS of present_climate_variables to match the polygon's system
  Saving _problems/test-rep_overlay-50.R
  [ FAIL 3 | WARN 17 | SKIP 0 | PASS 4 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-mh_rep.R:46:3'): mh_present runs and writes output ─────────────
  Error: [project] cannot get output boundaries for the target crs
  Backtrace:
      ▆
   1. └─ClimaRep::mh_rep(...) at test-mh_rep.R:46:3
   2.   ├─terra::project(climate_variables, reference_system)
   3.   └─terra::project(climate_variables, reference_system)
   4.     └─terra (local) .local(x, ...)
   5.       └─terra:::messages(x, "project")
   6.         └─terra:::error(f, x@pntr$getError())
  ── Error ('test-mh_rep_ch.R:43:3'): mh_rep_ch works correctly ──────────────────
  Error: [project] cannot get output boundaries for the target crs
  Backtrace:
      ▆
   1. └─ClimaRep::mh_rep_ch(...) at test-mh_rep_ch.R:43:3
   2.   ├─terra::project(present_climate_variables, reference_system)
   3.   └─terra::project(present_climate_variables, reference_system)
   4.     └─terra (local) .local(x, ...)
   5.       └─terra:::messages(x, "project")
   6.         └─terra:::error(f, x@pntr$getError())
  ── Error ('test-rep_overlay.R:40:3'): rep_overlay works correctly ──────────────
  Error: [project] cannot get output boundaries for the target crs
  Backtrace:
      ▆
   1. └─ClimaRep::mh_rep_ch(...) at test-rep_overlay.R:40:3
   2.   ├─terra::project(present_climate_variables, reference_system)
   3.   └─terra::project(present_climate_variables, reference_system)
   4.     └─terra (local) .local(x, ...)
   5.       └─terra:::messages(x, "project")
   6.         └─terra:::error(f, x@pntr$getError())
  
  [ FAIL 3 | WARN 17 | SKIP 0 | PASS 4 ]
  Error:
  ! Test failures.
  Execution halted