Running 'testthat.R' [218s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("testthat")
  +   library("checkmate")
  +   library("mlr3tuning")
  +   test_check("mlr3tuning")
  + }
  Loading required package: mlr3
  Loading required package: paradox
  Starting 2 test processes
  [ FAIL 11 | WARN 8 | SKIP 2 | PASS 4167 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On Windows (1)
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_ArchiveTuning.R:218'): ArchiveTuning as.data.table function works ──
  Error in `load(zfile, envir = tmp_env)`: empty (zero-byte) input file
  Backtrace:
       ▆
    1. ├─TuningInstanceSingleCrit$new(...) at test_ArchiveTuning.R:218:2
    2. │ └─mlr3tuning (local) initialize(...)
    3. │   └─mlr3tuning:::.__TuningInstanceSingleCrit__initialize(...)
    4. │     └─mlr3::assert_measures(...)
    5. │       └─base::lapply(...)
    6. │         └─mlr3 (local) FUN(X[[i]], ...)
    7. └─mlr3::tsk("pima")
    8.   └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
    9.     └─mlr3misc:::dictionary_get(dict, .key)
   10.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   11.         ├─base::do.call(constructor, cargs)
   12.         └─mlr3 (local) `<fn>`()
   13.           ├─mlr3::as_data_backend(load_dataset("PimaIndiansDiabetes2", "mlbench"))
   14.           └─mlr3misc::load_dataset("PimaIndiansDiabetes2", "mlbench")
   15.             └─utils::data(list = id, package = package, envir = ee)
   16.               └─base::load(zfile, envir = tmp_env)
  ── Error ('test_AutoTuner.R:156'): Nested resampling works with graphlearner ───
  Error in `serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)`: cannot allocate buffer
  Backtrace:
       ▆
    1. ├─global expect_learner(tab$learner[[1]]) at test_AutoTuner.R:156:2
    2. │ ├─global expect_hash(lrn$hash)
    3. │ │ └─checkmate::expect_character(...)
    4. │ │   └─checkmate::checkCharacter(...)
    5. │ │     └─... %and% ...
    6. │ │       └─base::isTRUE(lhs)
    7. │ ├─lrn$hash
    8. │ └─global `$.R6`(lrn, "hash")
    9. │   └─base::get(name, envir = x)
   10. └─mlr3tuning (local) `<fn>`()
   11.   └─mlr3tuning:::.__AutoTuner__hash(...)
   12.     └─mlr3misc::calculate_hash(...)
   13.       └─digest::digest(...)
   14.         └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
  ── Error ('test_ObjectiveTuning.R:2'): ObjectiveTuning ─────────────────────────
  Error in `load_dataset("iris", "datasets")`: lazy-load database 'D:\RCompile\recent\R\library\datasets/data/Rdata.rdb' is corrupt
  Backtrace:
      ▆
   1. └─mlr3::tsk("iris") at test_ObjectiveTuning.R:2:2
   2.   └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
   3.     └─mlr3misc:::dictionary_get(dict, .key)
   4.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   5.         ├─base::do.call(constructor, cargs)
   6.         └─mlr3 (local) `<fn>`()
   7.           ├─mlr3::as_data_backend(load_dataset("iris", "datasets"))
   8.           └─mlr3misc::load_dataset("iris", "datasets")
  ── Error ('test_TunerDesignPoints.R:3'): TunerDesignPoints ─────────────────────
  Error in `load_dataset("iris", "datasets")`: lazy-load database 'D:\RCompile\recent\R\library\datasets/data/Rdata.rdb' is corrupt
  Backtrace:
       ▆
    1. └─global test_tuner(...) at test_TunerDesignPoints.R:3:2
    2.   ├─TuningInstanceSingleCrit$new(...)
    3.   │ └─mlr3tuning (local) initialize(...)
    4.   │   └─mlr3tuning:::.__TuningInstanceSingleCrit__initialize(...)
    5.   │     └─mlr3::assert_measures(...)
    6.   │       └─base::lapply(...)
    7.   │         └─mlr3 (local) FUN(X[[i]], ...)
    8.   └─mlr3::tsk("iris")
    9.     └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
   10.       └─mlr3misc:::dictionary_get(dict, .key)
   11.         └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   12.           ├─base::do.call(constructor, cargs)
   13.           └─mlr3 (local) `<fn>`()
   14.             ├─mlr3::as_data_backend(load_dataset("iris", "datasets"))
   15.             └─mlr3misc::load_dataset("iris", "datasets")
  ── Error ('test_TunerGenSA.R:4'): TunerGenSA ───────────────────────────────────
  Error in `load_dataset("iris", "datasets")`: lazy-load database 'D:\RCompile\recent\R\library\datasets/data/Rdata.rdb' is corrupt
  Backtrace:
       ▆
    1. └─global test_tuner("gensa") at test_TunerGenSA.R:4:2
    2.   ├─TuningInstanceSingleCrit$new(...)
    3.   │ └─mlr3tuning (local) initialize(...)
    4.   │   └─mlr3tuning:::.__TuningInstanceSingleCrit__initialize(...)
    5.   │     └─mlr3::assert_measures(...)
    6.   │       └─base::lapply(...)
    7.   │         └─mlr3 (local) FUN(X[[i]], ...)
    8.   └─mlr3::tsk("iris")
    9.     └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
   10.       └─mlr3misc:::dictionary_get(dict, .key)
   11.         └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   12.           ├─base::do.call(constructor, cargs)
   13.           └─mlr3 (local) `<fn>`()
   14.             ├─mlr3::as_data_backend(load_dataset("iris", "datasets"))
   15.             └─mlr3misc::load_dataset("iris", "datasets")
  ── Error ('test_TunerGridSearch.R:3'): TunerGridSearch ─────────────────────────
  Error in `load(zfile, envir = tmp_env)`: empty (zero-byte) input file
  Backtrace:
       ▆
    1. └─global test_tuner_dependencies("grid_search") at test_TunerGridSearch.R:3:2
    2.   ├─TuningInstanceSingleCrit$new(...)
    3.   │ └─mlr3tuning (local) initialize(...)
    4.   │   └─mlr3tuning:::.__TuningInstanceSingleCrit__initialize(...)
    5.   │     └─mlr3::assert_measures(...)
    6.   │       └─base::lapply(...)
    7.   │         └─mlr3 (local) FUN(X[[i]], ...)
    8.   └─mlr3::tsk("boston_housing")
    9.     └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
   10.       └─mlr3misc:::dictionary_get(dict, .key)
   11.         └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   12.           ├─base::do.call(constructor, cargs)
   13.           └─mlr3 (local) `<fn>`()
   14.             ├─mlr3::as_data_backend(load_dataset("BostonHousing2", "mlbench"))
   15.             └─mlr3misc::load_dataset("BostonHousing2", "mlbench")
   16.               └─utils::data(list = id, package = package, envir = ee)
   17.                 └─base::load(zfile, envir = tmp_env)
  ── Error ('test_TunerGridSearch.R:19'): TunerGridSearch with TerminatorNone ────
  Error in `load_dataset("iris", "datasets")`: lazy-load database 'D:\RCompile\recent\R\library\datasets/data/Rdata.rdb' is corrupt
  Backtrace:
       ▆
    1. └─global TEST_MAKE_INST1(n_dim = 2L) at test_TunerGridSearch.R:19:2
    2.   ├─TuningInstanceSingleCrit$new(...)
    3.   │ └─mlr3tuning (local) initialize(...)
    4.   │   └─mlr3tuning:::.__TuningInstanceSingleCrit__initialize(...)
    5.   │     └─mlr3::assert_measures(...)
    6.   │       └─base::lapply(...)
    7.   │         └─mlr3 (local) FUN(X[[i]], ...)
    8.   └─mlr3::tsk("iris")
    9.     └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
   10.       └─mlr3misc:::dictionary_get(dict, .key)
   11.         └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   12.           ├─base::do.call(constructor, cargs)
   13.           └─mlr3 (local) `<fn>`()
   14.             ├─mlr3::as_data_backend(load_dataset("iris", "datasets"))
   15.             └─mlr3misc::load_dataset("iris", "datasets")
  ── Error ('test_TuningInstanceMultiCrit.R:137'): TuningInstanceMultiCrit and empty search space works ──
  Error in `load(zfile, envir = tmp_env)`: empty (zero-byte) input file
  Backtrace:
       ▆
    1. ├─mlr3tuning::tune(...) at test_TuningInstanceMultiCrit.R:137:2
    2. │ └─TuningInstance$new(...)
    3. │   └─mlr3tuning (local) initialize(...)
    4. │     └─mlr3tuning:::.__TuningInstanceMultiCrit__initialize(...)
    5. │       └─mlr3::assert_measures(...)
    6. │         └─base::lapply(...)
    7. │           └─mlr3 (local) FUN(X[[i]], ...)
    8. └─mlr3::tsk("pima")
    9.   └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
   10.     └─mlr3misc:::dictionary_get(dict, .key)
   11.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   12.         ├─base::do.call(constructor, cargs)
   13.         └─mlr3 (local) `<fn>`()
   14.           ├─mlr3::as_data_backend(load_dataset("PimaIndiansDiabetes2", "mlbench"))
   15.           └─mlr3misc::load_dataset("PimaIndiansDiabetes2", "mlbench")
   16.             └─utils::data(list = id, package = package, envir = ee)
   17.               └─base::load(zfile, envir = tmp_env)
  ── Error ('test_TuningInstanceMultiCrit.R:172'): assign_result works ───────────
  Error in `load(zfile, envir = tmp_env)`: empty (zero-byte) input file
  Backtrace:
       ▆
    1. └─mlr3::tsk("pima") at test_TuningInstanceMultiCrit.R:172:2
    2.   └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
    3.     └─mlr3misc:::dictionary_get(dict, .key)
    4.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
    5.         ├─base::do.call(constructor, cargs)
    6.         └─mlr3 (local) `<fn>`()
    7.           ├─mlr3::as_data_backend(load_dataset("PimaIndiansDiabetes2", "mlbench"))
    8.           └─mlr3misc::load_dataset("PimaIndiansDiabetes2", "mlbench")
    9.             └─utils::data(list = id, package = package, envir = ee)
   10.               └─base::load(zfile, envir = tmp_env)
  ── Error ('test_error_handling.R:10'): failing learner ─────────────────────────
  Error in `load_dataset("iris", "datasets")`: lazy-load database 'D:\RCompile\recent\R\library\datasets/data/Rdata.rdb' is corrupt
  Backtrace:
       ▆
    1. ├─TuningInstanceSingleCrit$new(...) at test_error_handling.R:10:2
    2. │ └─mlr3tuning (local) initialize(...)
    3. │   └─mlr3tuning:::.__TuningInstanceSingleCrit__initialize(...)
    4. │     └─mlr3::assert_measures(...)
    5. │       └─base::lapply(...)
    6. │         └─mlr3 (local) FUN(X[[i]], ...)
    7. └─mlr3::tsk("iris")
    8.   └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
    9.     └─mlr3misc:::dictionary_get(dict, .key)
   10.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   11.         ├─base::do.call(constructor, cargs)
   12.         └─mlr3 (local) `<fn>`()
   13.           ├─mlr3::as_data_backend(load_dataset("iris", "datasets"))
   14.           └─mlr3misc::load_dataset("iris", "datasets")
  ── Error ('test_TuningInstanceSingleCrit.R:126'): non-scalar hyperpars (#201) ──
  Error in `load_dataset("iris", "datasets")`: lazy-load database 'D:\RCompile\recent\R\library\datasets/data/Rdata.rdb' is corrupt
  Backtrace:
       ▆
    1. ├─TuningInstanceSingleCrit$new(...) at test_TuningInstanceSingleCrit.R:126:2
    2. │ └─mlr3tuning (local) initialize(...)
    3. │   └─mlr3tuning:::.__TuningInstanceSingleCrit__initialize(...)
    4. │     └─mlr3::assert_measures(...)
    5. │       └─base::lapply(...)
    6. │         └─mlr3 (local) FUN(X[[i]], ...)
    7. └─mlr3::tsk("iris")
    8.   └─mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
    9.     └─mlr3misc:::dictionary_get(dict, .key)
   10.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   11.         ├─base::do.call(constructor, cargs)
   12.         └─mlr3 (local) `<fn>`()
   13.           ├─mlr3::as_data_backend(load_dataset("iris", "datasets"))
   14.           └─mlr3misc::load_dataset("iris", "datasets")
  
  [ FAIL 11 | WARN 8 | SKIP 2 | PASS 4167 ]
  Error: Test failures
  Execution halted