Running 'testthat.R' [26s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(ElevDistr)
  > 
  > test_check("ElevDistr")
  
    |                                                                  
    |                                                            |   0%
    |                                                                  
    |============================================================| 100%
  
    |                                                                  
    |                                                            |   0%
    |                                                                  
    |============================================================| 100%
  
    |                                                                  
    |                                                            |   0%
    |                                                                  
    |============================================================| 100%
  
    |                                                                  
    |                                                            |   0%
    |                                                                  
    |====================                                        |  33%
    |                                                                  
    |========================================                    |  67%
    |                                                                  
    |============================================================| 100%
  [ FAIL 2 | WARN 22 | SKIP 0 | PASS 159 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-classify_above_treeline.R:8:3'): output type is correct ────────
  Error: [extract] cannot read values
  Backtrace:
       ▆
    1. └─ElevDistr::classify_above_treeline(point, gst, gsl, 6.4, 94) at test-classify_above_treeline.R:8:3
    2.   ├─base::cbind(...)
    3.   │ └─base::cbind(deparse.level, ...)
    4.   │   └─base::data.frame(..., check.names = FALSE)
    5.   ├─terra::extract(gstRaster, coords[, 1:2])
    6.   └─terra::extract(gstRaster, coords[, 1:2])
    7.     ├─terra::extract(x, v, ...)
    8.     └─terra::extract(x, v, ...)
    9.       └─terra (local) .local(x, y, ...)
   10.         └─terra:::messages(x, "extract")
   11.           └─terra:::error(f, x@ptr$getError())
  ── Error ('test-generate_point_df.R:7:3'): output type is correct ──────────────
  Error: [extract] cannot read values
  Backtrace:
      ▆
   1. └─ElevDistr::generate_point_df(gst, gsl, 10, 6.4, 94) at test-generate_point_df.R:7:3
   2.   ├─terra::extract(gstRaster, point)
   3.   └─terra::extract(gstRaster, point)
   4.     ├─terra::extract(x, v, ...)
   5.     └─terra::extract(x, v, ...)
   6.       └─terra (local) .local(x, y, ...)
   7.         └─terra:::messages(x, "extract")
   8.           └─terra:::error(f, x@ptr$getError())
  
  [ FAIL 2 | WARN 22 | SKIP 0 | PASS 159 ]
  Error: Test failures
  Execution halted