Running ‘testthat.R’ [87s/47s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library(testthat)
  +   library(checkmate)
  +   library(mlr3)
  +   library(mlr3tuning)
  + 
  +   test_check("mlr3tuning")
  + }
  Starting 2 test processes
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_Tuner.R:6:5): API ───────────────────────────────────────────────
  Error: attempt to apply non-function
  ── Error (test_Tuner.R:109:3): Tuner works with graphlearner ───────────────────
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─checkmate::expect_data_table(archive$data(), nrows = 3)
   2.   └─checkmate::checkDataTable(...)
  ── Error (test_TunerCmaes.R:2:3): TunerCmaes ───────────────────────────────────
  Error: Cannot set argument 'par' for 'TunerCmaes' (not a constructor argument, not a parameter, not a field. Did you mean 'start_values'?
  Backtrace:
      █
   1. └─mlr3tuning:::test_tuner("cmaes", par = 0.3)
   2.   └─mlr3tuning::tnr(key, ...) testthat/helper.R:39:2
   3.     └─mlr3misc::dictionary_sugar(mlr_tuners, .key, ...)
   4.       └─mlr3misc::stopf(...)
  ── Error (test_TunerDesignPoints.R:3:3): TunerDesignPoints ─────────────────────
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─mlr3tuning:::test_tuner(...)
   2.   └─checkmate::expect_data_table(archive$data(), nrows = real_evals) testthat/helper.R:44:2
   3.     └─checkmate::checkDataTable(...)
  ── Error (test_TunerGenSA.R:4:3): TunerGenSA ───────────────────────────────────
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─mlr3tuning:::test_tuner("gensa")
   2.   └─checkmate::expect_data_table(archive$data(), nrows = real_evals) testthat/helper.R:44:2
   3.     └─checkmate::checkDataTable(...)
  ── Error (test_TunerGenSA.R:28:3): TunerGenSA with int params and trafo ────────
  Error: attempt to apply non-function
  ── Error (test_TunerGenSA.R:38:3): TunerGenSA - Optimize wrapper with maximize measure ──
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─testthat::expect_equal(res$cp, max(inst$archive$data()$cp))
   2.   └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error (test_TunerGridSearch.R:2:3): TunerGridSearch ─────────────────────────
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─mlr3tuning:::test_tuner(...)
   2.   └─checkmate::expect_data_table(archive$data(), nrows = real_evals) testthat/helper.R:44:2
   3.     └─checkmate::checkDataTable(...)
  ── Error (test_TunerGridSearch.R:24:3): TunerGridSearch with TerminatorNone ────
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─checkmate::expect_data_table(archive$data(), nrows = 4L)
   2.   └─checkmate::checkDataTable(...)
  ── Error (test_TunerNLoptr.R:3:3): TunerNLoptr ─────────────────────────────────
  Error: Cannot set argument 'x0' for 'TunerNLoptr' (not a constructor argument, not a parameter, not a field. Did you mean 'xtol_rel' / 'xtol_abs'?
  Backtrace:
      █
   1. └─mlr3tuning:::test_tuner(...)
   2.   └─mlr3tuning::tnr(key, ...) testthat/helper.R:39:2
   3.     └─mlr3misc::dictionary_sugar(mlr_tuners, .key, ...)
   4.       └─mlr3misc::stopf(...)
  ── Error (test_TunerRandomSearch.R:2:3): TunerRandomSearch ─────────────────────
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─mlr3tuning:::test_tuner("random_search")
   2.   └─checkmate::expect_data_table(archive$data(), nrows = real_evals) testthat/helper.R:44:2
   3.     └─checkmate::checkDataTable(...)
  ── Error (test_AutoTuner.R:13:3): AutoTuner / train+predict ────────────────────
  Error: attempt to apply non-function
  ── Error (test_AutoTuner.R:44:3): AutoTuner / resample ─────────────────────────
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─base::lapply(...)
   2.   └─mlr3tuning:::FUN(X[[i]], ...)
   3.     └─checkmate::expect_data_table(inst$archive$data(), nrows = inner_evals)
   4.       └─checkmate::checkDataTable(...)
  ── Error (test_AutoTuner.R:130:3): AutoTuner works with graphlearner ───────────
  Error: attempt to apply non-function
  ── Error (test_AutoTuner.R:175:3): Nested resampling works with graphlearner ───
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─checkmate::expect_data_table(...)
   2.   └─checkmate::checkDataTable(...)
  ── Error (test_TuningInstanceMultiCrit.R:27:3): tuning with multiple objectives ──
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─checkmate::expect_data_table(inst$archive$data(), nrows = 10L)
   2.   └─checkmate::checkDataTable(...)
  ── Error (test_TuningInstanceMultiCrit.R:36:3): store_benchmark_result and store_models flag works ──
  Error: attempt to apply non-function
  Backtrace:
      █
   1. ├─testthat::expect_true("uhashes" %nin% colnames(inst$archive$data()))
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─"uhashes" %nin% colnames(inst$archive$data())
   5. └─base::colnames(inst$archive$data())
   6.   └─base::is.data.frame(x)
  ── Error (test_trafos.R:18:3): simple exp trafo works ──────────────────────────
  Error: attempt to apply non-function
  ── Error (test_trafos.R:42:3): trafo where param names change ──────────────────
  Error: attempt to apply non-function
  ── Error (test_TuningInstanceSingleCrit.R:4:3): TuningInstanceSingleCrit ───────
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─checkmate::expect_data_table(inst$archive$data(), nrows = 0)
   2.   └─checkmate::checkDataTable(...)
  ── Error (test_TuningInstanceSingleCrit.R:47:3): archive one row (#40) ─────────
  Error: attempt to apply non-function
  ── Error (test_TuningInstanceSingleCrit.R:56:3): eval_batch and termination ────
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─checkmate::expect_data_table(inst$archive$data(), nrows = 2L)
   2.   └─checkmate::checkDataTable(...)
  ── Error (test_TuningInstanceSingleCrit.R:77:3): the same experiment can be added twice ──
  Error: attempt to apply non-function
  ── Error (test_TuningInstanceSingleCrit.R:131:3): non-scalar hyperpars (#201) ──
  Error: attempt to apply non-function
  Backtrace:
      █
   1. └─checkmate::expect_data_table(inst$archive$data(), nrows = 1)
   2.   └─checkmate::checkDataTable(...)
  ── Error (test_TuningInstanceSingleCrit.R:139:3): store_benchmark_result and store_models flag works ──
  Error: attempt to apply non-function
  Backtrace:
      █
   1. ├─testthat::expect_true("uhashes" %nin% colnames(inst$archive$data()))
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─"uhashes" %nin% colnames(inst$archive$data())
   5. └─base::colnames(inst$archive$data())
   6.   └─base::is.data.frame(x)
  
  [ FAIL 25 | WARN 0 | SKIP 0 | PASS 196 ]
  Error: Test failures
  Execution halted