Running ‘testthat.R’ [12s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(checkmate)
  > library(iml)
  > 
  > test_check("iml")
  ── 1. Error: (unknown) (@test-Predictor.R#6)  ──────────────────────────────────
  there is no package called 'caret'
  1: library("caret") at testthat/test-Predictor.R:6
  2: stop(txt, domain = NA)
  
  ── 2. Error: (unknown) (@test-createPredictionFunction.R#6)  ───────────────────
  there is no package called 'caret'
  1: library("caret") at testthat/test-createPredictionFunction.R:6
  2: stop(txt, domain = NA)
  
  ── 3. Error: classificaton (@test-inferTask.R#18)  ─────────────────────────────
  unused arguments (method = "knn", preProcess = c("center", "scale"), tuneLength = 2, trControl = trainControl(method = "cv"))
  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
     }, "unused arguments (method = \"knn\", preProcess = c(\"center\", \"scale\"), tuneLength = 2, trControl = trainControl(method = \"cv\"))", 
         quote(train(TrainData, TrainClasses, method = "knn", preProcess = c("center", 
             "scale"), tuneLength = 2, trControl = trainControl(method = "cv")))) at testthat/test-inferTask.R:18
  2: eval(code, test_env)
  
  ── 4. Error: regression (@test-inferTask.R#42)  ────────────────────────────────
  unused arguments (data = cars, method = "lm")
  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
     }, "unused arguments (data = cars, method = \"lm\")", quote(train(dist ~ ., data = cars, 
         method = "lm"))) at testthat/test-inferTask.R:42
  2: eval(code, test_env)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 199 SKIPPED: 0 FAILED: 4
  1. Error: (unknown) (@test-Predictor.R#6) 
  2. Error: (unknown) (@test-createPredictionFunction.R#6) 
  3. Error: classificaton (@test-inferTask.R#18) 
  4. Error: regression (@test-inferTask.R#42) 
  
  Error: testthat unit tests failed
  Execution halted