Running ‘testthat.R’ [58s/65s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(checkmate)
  > library(iml)
  > 
  > test_check("iml")
  ── 1. Error: FeatureImp with 0 model error (@test-FeatureImp.R#58)  ────────────
  there is no package called 'mlr'
  1: mlr::makeLearner at testthat/test-FeatureImp.R:58
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 2. Error: Model receives data.frame without additional columns (@test-Feature
  there is no package called 'mlr'
  1: library(mlr) at testthat/test-FeatureImp.R:114
  2: stop(txt, domain = NA)
  
  ── 3. Error: (unknown) (@test-Predictor.R#4)  ──────────────────────────────────
  there is no package called 'mlr'
  1: library("mlr") at testthat/test-Predictor.R:4
  2: stop(txt, domain = NA)
  
  ── 4. Error: (unknown) (@test-create_predict_fun.R#4)  ─────────────────────────
  there is no package called 'mlr'
  1: library("mlr") at testthat/test-create_predict_fun.R:4
  2: stop(txt, domain = NA)
  
  ── 5. Error: find_y works with mlr (@test-find_y.R#6)  ─────────────────────────
  could not find function "makeRegrTask"
  1: .handleSimpleError(function (e) 
     {
         handled <<- TRUE
         test_error <<- e
         options(expressions = expressions_opt_new)
         on.exit(options(expressions = expressions_opt), add = TRUE)
         e$expectation_calls <- frame_calls(11, 2)
         test_error <<- e
         register_expectation(e)
         e$handled <- TRUE
         test_error <<- e
     }, "could not find function \"makeRegrTask\"", quote(makeRegrTask(data = cars, target = "dist"))) at testthat/test-find_y.R:6
  2: eval(code, test_env)
  
  ── 6. Error: (unknown) (@test-inferTask.R#3)  ──────────────────────────────────
  could not find function "randomForest"
  1: .handleSimpleError(function (e) 
     {
         handled <<- TRUE
         test_error <<- e
         options(expressions = expressions_opt_new)
         on.exit(options(expressions = expressions_opt), add = TRUE)
         e$expectation_calls <- frame_calls(11, 2)
         test_error <<- e
         register_expectation(e)
         e$handled <- TRUE
         test_error <<- e
     }, "could not find function \"randomForest\"", quote(randomForest(Species ~ ., data = iris, 
         ntree = 1))) at testthat/test-inferTask.R:3
  2: eval(code, test_env)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 425 SKIPPED: 0 FAILED: 6
  1. Error: FeatureImp with 0 model error (@test-FeatureImp.R#58) 
  2. Error: Model receives data.frame without additional columns (@test-FeatureImp.R#114) 
  3. Error: (unknown) (@test-Predictor.R#4) 
  4. Error: (unknown) (@test-create_predict_fun.R#4) 
  5. Error: find_y works with mlr (@test-find_y.R#6) 
  6. Error: (unknown) (@test-inferTask.R#3) 
  
  Error: testthat unit tests failed
  Execution halted