Running ‘run-base.R’ [269s/344s]
Running the tests in ‘tests/run-base.R’ failed.
Complete output:
  > library(testthat)
  > test_check("mlr", filter = "base")
  Loading required package: mlr
  Loading required package: ParamHelpers
  ── 1. Error: basic PreprocWrapperCaret works (@test_base_PreprocWrapperCaret.R#6
  there is no package called 'caret'
  1: train(lrn2, multiclass.task, subset = multiclass.train.inds) at testthat/test_base_PreprocWrapperCaret.R:6
  2: measureTime(fun1({
         learner.model = fun2(fun3(do.call(trainLearner, pars)))
     }))
  3: force(expr)
  4: fun1({
         learner.model = fun2(fun3(do.call(trainLearner, pars)))
     })
  5: evalVis(expr)
  6: withVisible(eval(expr, pf))
  7: eval(expr, pf)
  8: eval(expr, pf)
  9: fun2(fun3(do.call(trainLearner, pars)))
  10: fun3(do.call(trainLearner, pars))
  ...
  14: .learner$train(data = getTaskData(.task, .subset), target = getTaskTargetNames(.task), 
         args = pvs)
  15: do.call(caret::preProcess, c(list(x = x), cargs))
  16: caret::preProcess
  17: getExportedValue(pkg, name)
  18: asNamespace(ns)
  19: getNamespace(ns)
  20: tryCatch(loadNamespace(name), error = function(e) stop(e))
  21: tryCatchList(expr, classes, parentenv, handlers)
  22: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  23: value[[3L]](cond)
  
  ── 2. Error: check measure calculations (@test_base_measures.R#637)  ───────────
  object 'mldr_HL' not found
  1: expect_equal(mldr:::mldr_HL(multi.y, multi.p), measureMultilabelHamloss(multi.y, 
         multi.p)) at testthat/test_base_measures.R:637
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: mldr:::mldr_HL
  5: get(name, envir = asNamespace(pkg), inherits = FALSE)
  
  ── 3. Error: setThreshold does not produce NAs for extreme thresholds (@test_bas
  there is no package called 'caret'
  1: data(GermanCredit, package = "caret") at testthat/test_base_predict.R:102
  2: find.package(package, lib.loc, verbose = verbose)
  3: stop(gettextf("there is no package called %s", sQuote(pkg)), domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 2415 SKIPPED: 9 FAILED: 3
  1. Error: basic PreprocWrapperCaret works (@test_base_PreprocWrapperCaret.R#6) 
  2. Error: check measure calculations (@test_base_measures.R#637) 
  3. Error: setThreshold does not produce NAs for extreme thresholds (@test_base_predict.R#102) 
  
  Error: testthat unit tests failed
  Execution halted