Running ‘run-core.R’
  Running ‘run-cpo.R’ [52s/64s]
  Running ‘run-meta.R’ [11s/16s]
  Running ‘run-zzzlint.R’
Running the tests in ‘tests/run-cpo.R’ failed.
Complete output:
  > library(testthat)
  > test_check("mlrCPO", filter = "^_cpo_")
  Loading required package: mlrCPO
  Loading required package: ParamHelpers
  Loading required package: mlr
  
  Attaching package: 'BBmisc'
  
  The following object is masked from 'package:base':
  
      isFALSE
  
  ── 1. Error: filterFeatures default test (@test_cpo_filter.R#18)  ──────────────
  there is no package called 'FSelector'
  1: multiclass.task %>>% cpoFilterFeatures(method = filter, perc = 0.5) at testthat/test_cpo_filter.R:18
  2: eval.parent(deferAssignmentOperator(substitute(cpo1 %>>% cpo2)))
  3: eval(expr, p)
  4: eval(expr, p)
  5: `internal%>>%`(multiclass.task, cpoFilterFeatures(method = filter, perc = 0.5))
  6: `%>>%.Task`(multiclass.task, cpoFilterFeatures(method = filter, perc = 0.5))
  7: applyCPO(cpo2, cpo1)
  8: applyCPO.CPO(cpo2, cpo1)
  9: callCPO(cpo, task, TRUE, prev.retrafo, TRUE, prev.inverter)
  10: callCPO.CPOPrimitive(cpo, task, TRUE, prev.retrafo, TRUE, prev.inverter)
  ...
  19: do.call(x$fun, c(list(task = task, nselect = nselect), more.args[[x$name]]))
  20: (function (task, nselect, ...) 
     {
         y = FSelector::chi.squared(getTaskFormula(task), data = getTaskData(task))
         setNames(y[["attr_importance"]], getTaskFeatureNames(task))
     })(task = structure(list(type = "classif", env = <environment>, weights = NULL, blocking = NULL, 
         coordinates = NULL, task.desc = structure(list(id = "multiclass", type = "classif", 
             target = "Species", size = 150L, n.feat = c(numerics = 4L, factors = 0L, 
             ordered = 0L, functionals = 0L), has.missings = FALSE, has.weights = FALSE, 
             has.blocking = FALSE, has.coordinates = FALSE, class.levels = c("setosa", 
             "versicolor", "virginica"), positive = NA_character_, negative = NA_character_, 
             class.distribution = structure(c(setosa = 50L, versicolor = 50L, virginica = 50L
             ), .Dim = 3L, .Dimnames = structure(list(c("setosa", "versicolor", "virginica"
             )), .Names = ""), class = "table")), class = c("ClassifTaskDesc", "SupervisedTaskDesc", 
         "TaskDesc"))), class = c("ClassifTask", "SupervisedTask", "Task")), nselect = 2)
  21: FSelector::chi.squared
  22: getExportedValue(pkg, name)
  23: asNamespace(ns)
  24: getNamespace(ns)
  25: tryCatch(loadNamespace(name), error = function(e) stop(e))
  26: tryCatchList(expr, classes, parentenv, handlers)
  27: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  28: value[[3L]](cond)
  
  ── 2. Error: specialised CPOs work (@test_cpo_filter.R#58)  ────────────────────
  For CPO chi.squared please install the following packages: FSelector
  1: cpoconst(perc = 0.5) at testthat/test_cpo_filter.R:58
  2: requireCPOPackages(cpo)
  3: requirePackages(cpo$packages, why = stri_paste("CPO", cpo$name, sep = " "), default.method = "load")
  4: stopf("For %s please install the following packages: %s", why, ps)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 419 SKIPPED: 0 FAILED: 2
  1. Error: filterFeatures default test (@test_cpo_filter.R#18) 
  2. Error: specialised CPOs work (@test_cpo_filter.R#58) 
  
  Error: testthat unit tests failed
  Execution halted