Running ‘run-base.R’ [294s/395s]
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
  
  Attaching package: 'rex'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  
  Attaching package: 'BBmisc'
  
  The following object is masked from 'package:base':
  
      isFALSE
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1004 SKIPPED: 0 FAILED: 0
  > proc.time()
     user  system elapsed 
    0.086   0.062 210.815 
  ── 1. Error: plotFilterValues (@test_base_generateFilterValuesData.R#68)  ──────
  argument is of length zero
  1: generateFilterValuesData(binaryclass.task, method = filter.classif) at testthat/test_base_generateFilterValuesData.R:68
  2: lapply(filter, function(x) {
         x = do.call(x$fun, c(list(task = task, nselect = nselect), more.args[[x$name]]))
         missing.score = setdiff(fn, names(x))
         x[missing.score] = NA_real_
         x[match(fn, names(x))]
     })
  3: FUN(X[[i]], ...)
  4: do.call(x$fun, c(list(task = task, nselect = nselect), more.args[[x$name]]))
  5: (function (task, nselect, method = "md", ...) 
     {
         im = randomForestSRC::var.select(getTaskFormula(task), getTaskData(task), method = method, 
             verbose = FALSE, ...)$md.obj$order
         setNames(-im[, 1L], rownames(im))
     })(task = structure(list(type = "classif", env = <environment>, weights = NULL, blocking = NULL, 
         coordinates = NULL, task.desc = structure(list(id = "binary", type = "classif", 
             target = "Class", size = 208L, n.feat = c(numerics = 60L, factors = 0L, ordered = 0L, 
             functionals = 0L), has.missings = FALSE, has.weights = FALSE, has.blocking = FALSE, 
             has.coordinates = FALSE, class.levels = c("M", "R"), positive = "M", negative = "R", 
             class.distribution = structure(c(M = 111L, R = 97L), .Dim = 2L, .Dimnames = structure(list(
                 c("M", "R")), .Names = ""), class = "table")), class = c("ClassifTaskDesc", 
         "SupervisedTaskDesc", "TaskDesc"))), class = c("ClassifTask", "SupervisedTask", 
     "Task")), nselect = 60L)
  6: randomForestSRC::var.select(getTaskFormula(task), getTaskData(task), method = method, 
         verbose = FALSE, ...)
  7: max.subtree(rfsrc.obj, conservative = (conservative == "high"))
  
  ── 2. Error: 1 numeric hyperparam (@test_base_generateHyperParsEffect.R#48)  ───
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_generateHyperParsEffect.R:48
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 3. Error: 1 discrete hyperparam (@test_base_generateHyperParsEffect.R#77)  ──
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_generateHyperParsEffect.R:77
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 4. Error: 1 numeric hyperparam with optimizer failure (@test_base_generateHyp
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_generateHyperParsEffect.R:106
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 5. Error: 1 numeric hyperparam with nested cv (@test_base_generateHyperParsEf
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_generateHyperParsEffect.R:137
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 6. Error: 2 hyperparams (@test_base_generateHyperParsEffect.R#167)  ─────────
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_generateHyperParsEffect.R:167
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 7. Error: 2 hyperparams nested (@test_base_generateHyperParsEffect.R#236)  ──
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: expect_warning(ggsave(path)) at testthat/test_base_generateHyperParsEffect.R:236
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: ggsave(path)
  7: dev(file = filename, width = dim[1], height = dim[2], ...)
  8: svglite::svglite(...)
  9: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 8. Error: 2+ hyperparams (@test_base_generateHyperParsEffect.R#290)  ────────
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_generateHyperParsEffect.R:290
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 9. Error: generateLearningCurve (@test_base_generateLearningCurve.R#11)  ────
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_generateLearningCurve.R:11
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 10. Error: generatePartialDependenceData (@test_base_generatePartialDependenc
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_generatePartialDependence.R:19
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 11. Error: generateThreshVsPerfData (@test_base_generateThreshVsPerf.R#12)  ─
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggplot2::ggsave(path) at testthat/test_base_generateThreshVsPerf.R:12
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 12. Error: getHyperPars (@test_base_getHyperPars.R#27)  ─────────────────────
  cannot open the connection
  1: expect_output(print(lrn), "missing=NA") at testthat/test_base_getHyperPars.R:27
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: file()
  
  ── 13. Error: helpLearner of learner with multiple help pages (@test_base_helpLe
  cannot open the connection
  1: expect_output(testfn("classif.qda"), "Choose help page:(\\n[0-9]+ : [0-9a-zA-Z._]+)+\\n\\.\\.\\.: *$") at testthat/test_base_helpLearner.R:19
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: file()
  
  ── 14. Error: helpLearner of wrapped learner (@test_base_helpLearner.R#56)  ────
  cannot open the connection
  1: expect_output(testfn(makeBaggingWrapper(makeLearner("classif.qda"), 2)), "No information about learner") at testthat/test_base_helpLearner.R:56
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: file()
  
  ── 15. Error: helpLearnerParam (@test_base_helpLearner.R#61)  ──────────────────
  cannot open the connection
  1: expect_output(helpLearnerParam("classif.qda"), "method") at testthat/test_base_helpLearner.R:61
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: file()
  
  ── 16. Error: helpLearnerParam of wrapped learner (@test_base_helpLearner.R#101)
  cannot open the connection
  1: expect_output(helpLearnerParam(w1, "nu"), "Value: +4") at testthat/test_base_helpLearner.R:101
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: file()
  
  ── 17. Error: fuzzy matching works for mistyped hyperpars (@test_base_hyperpars.
  cannot open the connection
  1: expect_silent(makeLearner("classif.ksvm", config = cq, sigm = 1)) at testthat/test_base_hyperpars.R:73
  2: quasi_capture(enquo(object), evaluate_promise)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: file()
  
  ── 18. Error: ImputeWrapper (@test_base_impute.R#160)  ─────────────────────────
  cannot open the connection
  1: expect_output(print(mm), "root") at testthat/test_base_impute.R:160
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: file()
  
  ── 19. Error: check measure calculations (@test_base_measures.R#262)  ──────────
  cannot open the connection
  1: expect_silent(measureRSQ(c(1, 1, 1, 0), c(2, 2, 2, 2))) at testthat/test_base_measures.R:262
  2: quasi_capture(enquo(object), evaluate_promise)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: file()
  
  ── 20. Error: BenchmarkResult (@test_base_plotBMRBoxplots.R#12)  ───────────────
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_plotBMRBoxplots.R:12
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 21. Error: BenchmarkResult allows spaces (@test_base_plotBMRBoxplots.R#69)  ─
  could not open file '/home/hornik/tmp/scratch/RtmpKbg5QQ/file1dc74296f9eb.png'
  1: ggsave(tempfile(fileext = ".png")) at testthat/test_base_plotBMRBoxplots.R:69
  2: grid.draw(plot)
  3: grid.draw.ggplot(plot)
  4: print(x)
  5: print.ggplot(x)
  6: grid.newpage()
  
  ── 22. Error: plotBMRRanksAsBarChart (@test_base_plotBMRRanksAsBarChart.R#19)  ─
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_plotBMRRanksAsBarChart.R:19
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 23. Error: BenchmarkSummary (@test_base_plotBMRSummary.R#18)  ───────────────
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_plotBMRSummary.R:18
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 24. Error: test_CritDifferences (@test_base_plotCritDifferences.R#32)  ──────
  could not open file '/home/hornik/tmp/scratch/RtmpKbg5QQ/file1dc74932b55d.png'
  1: ggsave(tempfile(fileext = ".png")) at testthat/test_base_plotCritDifferences.R:32
  2: grid.draw(plot)
  3: grid.draw.ggplot(plot)
  4: print(x)
  5: print.ggplot(x)
  6: grid.newpage()
  
  ── 25. Error: plotLearnerPrediction (@test_base_plotLearnerPrediction.R#6)  ────
  could not open file '/home/hornik/tmp/scratch/RtmpKbg5QQ/file1dc71825020e.png'
  1: ggsave(tempfile(fileext = ".png")) at testthat/test_base_plotLearnerPrediction.R:6
  2: grid.draw(plot)
  3: grid.draw.ggplot(plot)
  4: print(x)
  5: print.ggplot(x)
  6: grid.newpage()
  
  ── 26. Error: plotResiduals with prediction object (@test_base_plotResiduals.R#1
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_plotResiduals.R:11
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 27. Error: plotResiduals with BenchmarkResult (@test_base_plotResiduals.R#46)
  cannot open stream /home/hornik/tmp/scratch/RtmpKbg5QQ/test.svg
  1: ggsave(path) at testthat/test_base_plotResiduals.R:46
  2: dev(file = filename, width = dim[1], height = dim[2], ...)
  3: svglite::svglite(...)
  4: svglite_(file, bg, width, height, pointsize, standalone, aliases)
  
  ── 28. Error: resample (@test_base_resample.R#30)  ─────────────────────────────
  cannot open the connection
  1: expect_output(print(r1), "Resample Result") at testthat/test_base_resample.R:30
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: file()
  
  ── 29. Error: resample printer respects show.info (@test_base_resample.R#192)  ─
  cannot open the connection
  1: expect_silent(resample(lrn, bh.task, cv10, list(mape, medae, mse))) at testthat/test_base_resample.R:192
  2: quasi_capture(enquo(object), evaluate_promise)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: file()
  
  ── 30. Error: selectFeatures (@test_base_selectFeatures.R#15)  ─────────────────
  cannot open the connection
  1: expect_output(print(ctrl), "Imputation value: <worst>") at testthat/test_base_selectFeatures.R:15
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: file()
  
  ── 31. Error: tune (@test_base_tuning.R#30)  ───────────────────────────────────
  cannot open the connection
  1: expect_output(print(ctrl), "Imputation value: <worst>") at testthat/test_base_tuning.R:30
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: file()
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 3185 SKIPPED: 0 FAILED: 31
  1. Error: plotFilterValues (@test_base_generateFilterValuesData.R#68) 
  2. Error: 1 numeric hyperparam (@test_base_generateHyperParsEffect.R#48) 
  3. Error: 1 discrete hyperparam (@test_base_generateHyperParsEffect.R#77) 
  4. Error: 1 numeric hyperparam with optimizer failure (@test_base_generateHyperParsEffect.R#106) 
  5. Error: 1 numeric hyperparam with nested cv (@test_base_generateHyperParsEffect.R#137) 
  6. Error: 2 hyperparams (@test_base_generateHyperParsEffect.R#167) 
  7. Error: 2 hyperparams nested (@test_base_generateHyperParsEffect.R#236) 
  8. Error: 2+ hyperparams (@test_base_generateHyperParsEffect.R#290) 
  9. Error: generateLearningCurve (@test_base_generateLearningCurve.R#11) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted