Running ‘testthat.R’ [32s/39s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(nlpred)
  Loading required package: data.table
  > 
  > test_check("nlpred")
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 |
  Multistart 1 of 1 /
  Multistart 1 of 1 |
  Multistart 1 of 1 |
                     
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (testWrappers.R:31:3): wrappers work ──────────────────────────────────
  Error: there is no package called 'xgboost'
  Backtrace:
       █
    1. └─nlpred:::check_wrapper(...) testWrappers.R:31:16
    2.   ├─base::do.call(wrapper, args = list(train = train, test = test)) testWrappers.R:12:16
    3.   └─nlpred::xgboost_wrapper(...)
    4.     └─xgboost::xgb.DMatrix
    5.       └─base::getExportedValue(pkg, name)
    6.         └─base::asNamespace(ns)
    7.           └─base::getNamespace(ns)
    8.             └─base::loadNamespace(name)
    9.               └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.                 └─base:::withOneRestart(expr, restarts[[1L]])
   11.                   └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 40 ]
  Error: Test failures
  Execution halted