Running ‘testthat.R’ [2s/3s]
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(rlandfire)
  > 
  > test_check("rlandfire")
  [ FAIL 5 | WARN 0 | SKIP 3 | PASS 22 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-landfireAPI.R:59:3', 'test-landfireAPI.R:72:3',
    'test-landfireAPI.R:86:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-getAOI.R:2:3'): `getAOI` works with supported object classes ───
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'terra'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-getAOI.R:2:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-getAOI.R:20:3'): `getAOI()` recognizes arguement errors ────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'terra'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-getAOI.R:20:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-getAOI.R:45:3'): `getAOI` returns correct extended AOI ─────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'terra'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-getAOI.R:45:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-getAOI.R:61:3'): `getAOI` returns correct CRS ──────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'terra'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-getAOI.R:61:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-getAOI.R:118:3'): `getZone` recognizes arguement errors ────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'terra'
  Backtrace:
       ▆
    1. ├─testthat::expect_error(getZone(terra::vect(v)), "argument `data` must be sf object, or character string") at test-getAOI.R:118:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─rlandfire::getZone(terra::vect(v))
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base (local) withOneRestart(expr, restarts[[1L]])
   11.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 5 | WARN 0 | SKIP 3 | PASS 22 ]
  Error: Test failures
  Execution halted