Running 'testthat.R' [10s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(landscapemetrics)
  > library(terra)
  terra 1.8.86
  
  Attaching package: 'terra'
  
  The following objects are masked from 'package:testthat':
  
      compare, describe
  
  > 
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:terra':
  
      intersect, union
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > library(stringr)
  > library(tidyr)
  
  Attaching package: 'tidyr'
  
  The following object is masked from 'package:terra':
  
      extract
  
  > 
  > test_check("landscapemetrics")
  Error in `source_dir()`:
  ! Failed to evaluate './helper-testthat.R'.
  Caused by error:
  ! [rast] empty srs
  Backtrace:
       ▆
    1. ├─testthat::test_check("landscapemetrics")
    2. │ └─testthat::test_dir(...)
    3. │   └─testthat:::test_files(...)
    4. │     └─testthat:::test_files_serial(...)
    5. │       └─testthat:::test_files_setup_state(...)
    6. │         └─testthat::source_test_helpers(".", env)
    7. │           └─testthat::source_dir(path, "^helper.*\\.[rR]$", env = env, wrap = FALSE)
    8. │             └─base::lapply(...)
    9. │               └─testthat (local) FUN(X[[i]], ...)
   10. │                 └─testthat::source_file(...)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. │                       ├─terra::rast(landscapemetrics::podlasie_ccilc) at ./helper-testthat.R:6:1
   15. │                       └─terra::rast(landscapemetrics::podlasie_ccilc)
   16. │                         └─terra (local) .local(x, ...)
   17. │                           ├─terra::unwrap(x)
   18. │                           └─terra::unwrap(x)
   19. │                             └─terra (local) .local(x, ...)
   20. │                               ├─base::eval(parse(text = x@definition))
   21. │                               │ └─base::eval(parse(text = x@definition))
   22. │                               ├─terra::rast(...)
   23. │                               └─terra::rast(...)
   24. │                                 └─terra (local) .local(x = x, ...)
   25. │                                   └─terra:::new_rast(...)
   26. │                                     └─terra:::messages(r, "rast")
   27. │                                       └─terra:::error(f, x@pntr$getError())
   28. │                                         └─base::stop("[", f, "] ", emsg, ..., call. = FALSE)
   29. └─base::.handleSimpleError(`<fn>`, "[rast] empty srs", base::quote(NULL))
   30.   └─testthat (local) h(simpleError(msg, call))
   31.     └─cli::cli_abort(...)
   32.       └─rlang::abort(...)
  Warning message:
  PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1) 
  Execution halted