Running 'testthat.R' [116s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(IsoriX)
  
   IsoriX version 0.9.0 is now loaded
  
   Type:
     * `?IsoriX` for a very short description
     * `browseURL('https://bookdown.org/content/782/')` for a longer (online) documentation
     * `help(package = 'IsoriX', help_type = 'html')` for a list of the package objects and help files
     * `citation('IsoriX')` for how to cite IsoriX (i.e. the papers you should read)
     * `news(package = 'IsoriX')` for info on changed between versions of IsoriX
  
   Please join the mailing list 'https://groups.google.com/g/IsoriX'
   for help, news and discussions about IsoriX
  
  Warning message:
  In exists(name, inlineHandlers, inherits = FALSE) :
    restarting interrupted promise evaluation
  > 
  > test_check("IsoriX")
  [ FAIL 6 | WARN 2 | SKIP 0 | PASS 22 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_na_handling.R:27:3'): calibfit() can handle NA ───────────────
  `... <<- NULL` threw an error.
  Message: 'R_Calloc' could not allocate memory (133480 of 4 bytes)
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_na_handling.R:27:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .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. │ └─IsoriX:::.calibfit_wild(...)
    8. │   ├─base::system.time(...)
    9. │   └─stats::optim(...)
   10. │     └─stats (local) `<fn>`(`<dbl>`)
   11. │       └─IsoriX (local) fn(par, ...)
   12. │         ├─spaMM::HLCor(...)
   13. │         │ └─base::eval(mc, parent.frame())
   14. │         │   └─base::eval(mc, parent.frame())
   15. │         └─spaMM (local) `<fn>`(fixed = `<named list>`, processed = `<arglist>`)
   16. │           ├─base::do.call("HLfit", HL.info)
   17. │           ├─spaMM::HLfit(...)
   18. │           │ └─base::eval(mc, parent.frame())
   19. │           │   └─base::eval(mc, parent.frame())
   20. │           └─spaMM (local) `<fn>`(init.HLfit = `<list>`, fixed = `<named list>`, processed = `<arglist>`)
   21. │             └─spaMM:::.loop_while_TRUE(...)
   22. │               └─spaMM:::.calc_std_leverages(...)
   23. │                 └─spaMM:::.get_hatvalues_MM(...)
   24. │                   ├─spaMM::get_from_MME(sXaug, which = "hatval")
   25. │                   └─spaMM::get_from_MME.sparseMatrix(sXaug, which = "hatval")
   26. │                     └─spaMM (local) locfn(sXaug = sXaug, which = which, szAug = szAug, B = B, ...)
   27. │                       └─spaMM:::.sXaug_Matrix_QRP_CHM_scaled(...)
   28. └─spaMM:::.calc_t_Q_scaled(BLOB, sXaug)
   29.   ├─base::solve(t(BLOB$R_scaled), t(sXaug[, BLOB$perm]))
   30.   └─Matrix::solve(t(BLOB$R_scaled), t(sXaug[, BLOB$perm]))
   31.     └─Matrix:::.solve.dtC.sparse(a, b)
   32.       └─Matrix:::.sortCsparse(.Call(dtCMatrix_sparse_solve, a, b))
  ── 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:
      ▆
   1. ├─testthat::expect_error(plot(CalibAlien), regexp = NA) at test_na_handling.R:33:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .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:
      ▆
   1. ├─testthat::expect_error(...) at test_na_handling.R:39:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .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:
      ▆
   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 (local) 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:
      ▆
   1. ├─testthat::expect_error(plot(AssignmentDry, who = 2), regexp = NA) at test_na_handling.R:48:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .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:
      ▆
   1. ├─testthat::expect_error(plot(AssignmentDry, who = "group"), regexp = NA) at test_na_handling.R:49:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─base::plot(AssignmentDry, who = "group")
  
  [ FAIL 6 | WARN 2 | SKIP 0 | PASS 22 ]
  Error: Test failures
  Execution halted