Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(OOBCurve)
  Loading required package: mlr
  Loading required package: ParamHelpers
  Warning message: 'mlr' is in 'maintenance-only' mode since July 2019.
  Future development will only happen in 'mlr3'
  (<https://mlr3.mlr-org.com>). Due to the focus on 'mlr3' there might be
  uncaught bugs meanwhile in {mlr} - please consider switching.
  > 
  > test_check("OOBCurve")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_base.R:64:3): trained model with mlr ────────────────────────────
  Error: there is no package called 'XML'
  Backtrace:
       █
    1. ├─mlr::train(...) test_base.R:64:2
    2. │ └─mlr::checkLearner(learner)
    3. ├─mlr::makeLearner("classif.ranger", keep.inbag = TRUE, num.trees = num.trees)
    4. │ ├─base::do.call(constructor, list())
    5. │ └─(function () ...
    6. │   └─mlr::makeRLearnerClassif(...)
    7. │     ├─BBmisc::addClasses(...)
    8. │     └─mlr:::makeRLearnerInternal(...)
    9. │       └─mlr:::makeParamHelpList(callees, package, par.set)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base:::withOneRestart(expr, restarts[[1L]])
   13.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_base.R:77:3): OOBCurvePars ──────────────────────────────────────
  Error: there is no package called 'XML'
  Backtrace:
       █
    1. ├─mlr::makeLearner("classif.ranger", num.trees = num.trees, predict.type = "prob") test_base.R:77:2
    2. │ ├─base::do.call(constructor, list())
    3. │ └─(function () ...
    4. │   └─mlr::makeRLearnerClassif(...)
    5. │     ├─BBmisc::addClasses(...)
    6. │     └─mlr:::makeRLearnerInternal(...)
    7. │       └─mlr:::makeParamHelpList(callees, package, par.set)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base:::withOneRestart(expr, restarts[[1L]])
   11.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 16 ]
  Error: Test failures
  Execution halted