Running ‘testthat.R’ [15s/19s]
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 |
                     
  Saving _problems/testWrappers-13.R
  [ FAIL 1 | WARN 4 | SKIP 0 | PASS 40 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('testWrappers.R:12:3'): wrappers work ────────────────────────────────
  <getvarError/missingArgError/error/condition>
  Error in `xgboost::xgboost(data = xgmat, objective = "binary:logistic", nrounds = ntrees, max_depth = max_depth, min_child_weight = minobspernode, eta = shrinkage, verbose = verbose, nthread = nthread, params = params, save_period = save_period)`: argument "y" is missing, with no default
  Backtrace:
      ▆
   1. └─nlpred (local) check_wrapper(paste0(wrap, "_wrapper"), test = test, train = train) at testWrappers.R:31:17
   2.   ├─base::do.call(wrapper, args = list(train = train, test = test)) at testWrappers.R:12:17
   3.   └─nlpred::xgboost_wrapper(train = `<list>`, test = `<list>`)
   4.     └─xgboost::xgboost(...)
   5.       └─xgboost:::process.y.margin.and.objective(...)
   6.         └─base::NROW(y)
  
  [ FAIL 1 | WARN 4 | SKIP 0 | PASS 40 ]
  Error:
  ! Test failures.
  Execution halted