Running ‘testthat.R’ [108s/287s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(IsoriX)
  
   IsoriX version 0.8.2 is now loaded!
  
   Type:
  
      * ?IsoriX
        for a very short description
  
      * help(package = 'IsoriX', help_type = 'html')
        for a list of the package objects and their help files
  
      * browseURL('https://bookdown.org/content/782/')
        for online tutorials & documentation
  
      * citation('IsoriX')
        for information on how to cite IsoriX (i.e. the papers you should read)
  
      * news(package = 'IsoriX')
        for info on what has changed between the different versions of IsoriX
  
  There were 50 or more warnings (use warnings() to see the first 50)
  > 
  > test_check("IsoriX")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_na_handling.R:22:3): plot.ISOSCAPE() can handle NA ────────────
  `plot(GermanScape)` threw an error.
  Message: unable to find an inherited method for function 'xmin' for signature '"Extent"'
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(plot(GermanScape), regexp = NA) test_na_handling.R:22:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─base::plot(GermanScape)
    7. └─IsoriX:::plot.ISOSCAPE(GermanScape)
    8.   ├─rasterVis::levelplot(...)
    9.   └─rasterVis::levelplot(...)
   10.     └─rasterVis:::.local(x, data = data, ...)
   11.       └─rasterVis:::.levelplot(...)
   12.         └─terra::xmin(bb)
   13.           └─(function (classes, fdef, mtable) ...
  ── Failure (test_na_handling.R:48:3): plot.ISOFIND() can handle NA ─────────────
  `plot(AssignmentDry, who = 2)` threw an error.
  Message: unable to find an inherited method for function 'xmin' for signature '"Extent"'
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(plot(AssignmentDry, who = 2), regexp = NA) test_na_handling.R:48:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─base::plot(AssignmentDry, who = 2)
    7. └─IsoriX:::plot.ISOFIND(AssignmentDry, who = 2)
    8.   ├─rasterVis::levelplot(...)
    9.   └─rasterVis::levelplot(...)
   10.     └─rasterVis:::.local(x, data = data, ...)
   11.       └─rasterVis:::.levelplot(...)
   12.         └─terra::xmin(bb)
   13.           └─(function (classes, fdef, mtable) ...
  ── Failure (test_na_handling.R:49:3): plot.ISOFIND() can handle NA ─────────────
  `plot(AssignmentDry, who = "group")` threw an error.
  Message: unable to find an inherited method for function 'xmin' for signature '"Extent"'
  Class:   simpleError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(plot(AssignmentDry, who = "group"), regexp = NA) test_na_handling.R:49:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─base::plot(AssignmentDry, who = "group")
    7. └─IsoriX:::plot.ISOFIND(AssignmentDry, who = "group")
    8.   ├─rasterVis::levelplot(...)
    9.   └─rasterVis::levelplot(...)
   10.     └─rasterVis:::.local(x, data = data, ...)
   11.       └─rasterVis:::.levelplot(...)
   12.         └─terra::xmin(bb)
   13.           └─(function (classes, fdef, mtable) ...
  
  [ FAIL 3 | WARN 2 | SKIP 0 | PASS 20 ]
  Error: Test failures
  Execution halted