Running 'testthat.R' [17s]
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
  
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'memoise'
  > 
  > test_check("IsoriX")
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 14 ]
  
  == Failed tests ================================================================
  -- Failure (test_na_handling.R:9:3): isofit() can handle NA --------------------
  `... <<- NULL` threw an error.
  Message: could not find function "...names"
  Class:   simpleError/error/condition
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test_na_handling.R:9:2
    2. | \-testthat:::quasi_capture(...)
    3. |   +-testthat .capture(...)
    4. |   | \-base::withCallingHandlers(...)
    5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. \-IsoriX::isofit(...)
    7.   +-base::system.time(...)
    8.   +-base::do.call(...)
    9.   \-spaMM `<fn>`(...)
   10.     \-"prior.weights" %in% ...names()
  -- Failure (test_na_handling.R:18:3): isoscape() can handle NA -----------------
  `GermanScape <<- isoscape(raster = ElevRasterDE, isofit = GermanFit)` threw an error.
  Message: object 'GermanFit' not found
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(...) at test_na_handling.R:18:2
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat .capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-IsoriX::isoscape(raster = ElevRasterDE, isofit = GermanFit)
   7.   \-class(isofit) %in% "MULTIISOFIT"
  -- Failure (test_na_handling.R:22:3): plot.ISOSCAPE() can handle NA ------------
  `plot(GermanScape)` threw an error.
  Message: object 'GermanScape' not found
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(plot(GermanScape), regexp = NA) at 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)
  -- Failure (test_na_handling.R:27:3): calibfit() can handle NA -----------------
  `... <<- NULL` threw an error.
  Message: object 'GermanFit' not found
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(...) at test_na_handling.R:27:2
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat .capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-IsoriX::calibfit(data = CalibDataAlien, isofit = GermanFit, control_optim = list(maxit = 15))
   7.   +-base::system.time(...)
   8.   \-class(isofit) %in% "MULTIISOFIT"
  -- Failure (test_na_handling.R:33:3): plot.CALIBFIT can handle NA --------------
  `plot(CalibAlien)` threw an error.
  Message: object 'CalibAlien' not found
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(plot(CalibAlien), regexp = NA) at test_na_handling.R:33: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(CalibAlien)
  -- Failure (test_na_handling.R:39:3): isofind() can handle NA ------------------
  `... <<- NULL` threw an error.
  Message: object 'CalibAlien' not found
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(...) at test_na_handling.R:39:2
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat .capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-IsoriX::isofind(...)
  -- Error (test_na_handling.R:43:3): isofind() can handle NA --------------------
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'values': object 'AssignmentDry' not found
  Backtrace:
      x
   1. +-testthat::expect_false(all(is.na(raster::values(AssignmentDry$group$pv$layer)))) at test_na_handling.R:43:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-raster::values(AssignmentDry$group$pv$layer)
   5. \-base::.handleSimpleError(...)
   6.   \-base h(simpleError(msg, call))
  -- Failure (test_na_handling.R:48:3): plot.ISOFIND() can handle NA -------------
  `plot(AssignmentDry, who = 2)` threw an error.
  Message: object 'AssignmentDry' not found
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(plot(AssignmentDry, who = 2), regexp = NA) at 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)
  -- Failure (test_na_handling.R:49:3): plot.ISOFIND() can handle NA -------------
  `plot(AssignmentDry, who = "group")` threw an error.
  Message: object 'AssignmentDry' not found
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-testthat::expect_error(plot(AssignmentDry, who = "group"), regexp = NA) at 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")
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 14 ]
  Error: Test failures
  Execution halted