Running ‘testthat.R’ [39s/46s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mlr3hyperband)
  > 
  > test_check("mlr3hyperband")
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test_TunerHyperband.R:10:3): TunerHyperband singlecrit ─────────────
  Package 'xgboost' required but not installed for Learner 'classif.xgboost'
  Backtrace:
    1. mlr3hyperband:::test_tuner_hyperband(eta = 3L, lower_b = 1, upper_b = 27) test_TunerHyperband.R:10:2
    9. mlr3::lrn("classif.xgboost")
   10. mlr3misc::dictionary_sugar_get(mlr_learners, .key, ...)
   11. mlr3misc:::dictionary_get(dict, .key)
   12. mlr3misc:::dictionary_initialize_item(key, obj, dots)
   15. mlr3learners:::initialize(...)
   16. mlr3learners:::.__LearnerClassifXgboost__initialize(...)
   17. super$initialize(...)
   18. mlr3:::.__LearnerClassif__initialize(...)
   19. super$initialize(...)
   20. mlr3:::.__Learner__initialize(...)
   21. mlr3misc::check_packages_installed(...)
  ── Warning (test_TunerHyperband.R:18:3): TunerHyperband multicrit ──────────────
  Package 'xgboost' required but not installed for Learner 'classif.xgboost'
  Backtrace:
    1. mlr3hyperband:::test_tuner_hyperband(...) test_TunerHyperband.R:18:2
    9. mlr3::lrn("classif.xgboost") helper.R:79:4
   10. mlr3misc::dictionary_sugar_get(mlr_learners, .key, ...)
   11. mlr3misc:::dictionary_get(dict, .key)
   12. mlr3misc:::dictionary_initialize_item(key, obj, dots)
   15. mlr3learners:::initialize(...)
   16. mlr3learners:::.__LearnerClassifXgboost__initialize(...)
   17. super$initialize(...)
   18. mlr3:::.__LearnerClassif__initialize(...)
   19. super$initialize(...)
   20. mlr3:::.__Learner__initialize(...)
   21. mlr3misc::check_packages_installed(...)
  ── Warning (test_TunerHyperband.R:64:3): TunerHyperband using CV ───────────────
  Package 'xgboost' required but not installed for Learner 'classif.xgboost'
  Backtrace:
    1. TuningInstanceSingleCrit$new(...) test_TunerHyperband.R:64:2
    8. mlr3::lrn("classif.xgboost")
    9. mlr3misc::dictionary_sugar_get(mlr_learners, .key, ...)
   10. mlr3misc:::dictionary_get(dict, .key)
   11. mlr3misc:::dictionary_initialize_item(key, obj, dots)
   14. mlr3learners:::initialize(...)
   15. mlr3learners:::.__LearnerClassifXgboost__initialize(...)
   16. super$initialize(...)
   17. mlr3:::.__LearnerClassif__initialize(...)
   18. super$initialize(...)
   19. mlr3:::.__Learner__initialize(...)
   20. mlr3misc::check_packages_installed(...)
  ── Warning (test_TunerHyperband.R:169:3): TunerHyperband using param trafo and non-integer eta ──
  Package 'xgboost' required but not installed for Learner 'classif.xgboost'
  Backtrace:
    1. TuningInstanceSingleCrit$new(...) test_TunerHyperband.R:169:2
    8. mlr3::lrn("classif.xgboost")
    9. mlr3misc::dictionary_sugar_get(mlr_learners, .key, ...)
   10. mlr3misc:::dictionary_get(dict, .key)
   11. mlr3misc:::dictionary_initialize_item(key, obj, dots)
   14. mlr3learners:::initialize(...)
   15. mlr3learners:::.__LearnerClassifXgboost__initialize(...)
   16. super$initialize(...)
   17. mlr3:::.__LearnerClassif__initialize(...)
   18. super$initialize(...)
   19. mlr3:::.__Learner__initialize(...)
   20. mlr3misc::check_packages_installed(...)
  ── Warning (test_TunerHyperband.R:198:3): TunerHyperband using custom sampler ──
  Package 'xgboost' required but not installed for Learner 'classif.xgboost'
  Backtrace:
    1. TuningInstanceSingleCrit$new(...) test_TunerHyperband.R:198:2
    8. mlr3::lrn("classif.xgboost")
    9. mlr3misc::dictionary_sugar_get(mlr_learners, .key, ...)
   10. mlr3misc:::dictionary_get(dict, .key)
   11. mlr3misc:::dictionary_initialize_item(key, obj, dots)
   14. mlr3learners:::initialize(...)
   15. mlr3learners:::.__LearnerClassifXgboost__initialize(...)
   16. super$initialize(...)
   17. mlr3:::.__LearnerClassif__initialize(...)
   18. super$initialize(...)
   19. mlr3:::.__Learner__initialize(...)
   20. mlr3misc::check_packages_installed(...)
  ── Warning (test_TunerHyperband.R:256:3): TunerHyperband invalid input ─────────
  Package 'xgboost' required but not installed for Learner 'classif.xgboost'
  Backtrace:
    1. TuningInstanceSingleCrit$new(...) test_TunerHyperband.R:256:2
    8. mlr3::lrn("classif.xgboost")
    9. mlr3misc::dictionary_sugar_get(mlr_learners, .key, ...)
   10. mlr3misc:::dictionary_get(dict, .key)
   11. mlr3misc:::dictionary_initialize_item(key, obj, dots)
   14. mlr3learners:::initialize(...)
   15. mlr3learners:::.__LearnerClassifXgboost__initialize(...)
   16. super$initialize(...)
   17. mlr3:::.__LearnerClassif__initialize(...)
   18. super$initialize(...)
   19. mlr3:::.__Learner__initialize(...)
   20. mlr3misc::check_packages_installed(...)
  ── Warning (test_TunerHyperband.R:278:3): TunerHyperband invalid input ─────────
  Package 'xgboost' required but not installed for Learner 'classif.xgboost'
  Backtrace:
    1. TuningInstanceSingleCrit$new(...) test_TunerHyperband.R:278:2
    8. mlr3::lrn("classif.xgboost")
    9. mlr3misc::dictionary_sugar_get(mlr_learners, .key, ...)
   10. mlr3misc:::dictionary_get(dict, .key)
   11. mlr3misc:::dictionary_initialize_item(key, obj, dots)
   14. mlr3learners:::initialize(...)
   15. mlr3learners:::.__LearnerClassifXgboost__initialize(...)
   16. super$initialize(...)
   17. mlr3:::.__LearnerClassif__initialize(...)
   18. super$initialize(...)
   19. mlr3:::.__Learner__initialize(...)
   20. mlr3misc::check_packages_installed(...)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_TunerHyperband.R:10:3): TunerHyperband singlecrit ───────────────
  Error: The following packages could not be loaded: xgboost
  Backtrace:
       █
    1. └─mlr3hyperband:::test_tuner_hyperband(eta = 3L, lower_b = 1, upper_b = 27) test_TunerHyperband.R:10:2
    2.   └─tuner$optimize(inst) helper.R:87:2
    3.     └─mlr3tuning:::.__Tuner__optimize(...)
    4.       └─bbotk::optimize_default(inst, self, private)
    5.         ├─base::tryCatch(...)
    6.         │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
    7.         │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8.         │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
    9.         └─private$.optimize(inst)
   10.           └─inst$eval_batch(xdt)
   11.             └─bbotk:::.__OptimInstance__eval_batch(...)
   12.               └─self$objective$eval_many(xss_trafoed)
   13.                 └─bbotk:::.__Objective__eval_many(...)
   14.                   └─private$.eval_many(xss)
   15.                     └─mlr3tuning:::.__ObjectiveTuning__.eval_many(...)
   16.                       └─mlr3::benchmark(design, store_models = self$store_models)
   17.                         └─future.apply::future_mapply(...)
   18.                           └─future.apply:::future_xapply(...)
   19.                             ├─future::value(fs)
   20.                             └─future:::value.list(fs)
   21.                               ├─future::resolve(...)
   22.                               └─future:::resolve.list(...)
   23.                                 └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   24.                                   └─future:::signalConditions(...)
  ── Error (test_TunerHyperband.R:18:3): TunerHyperband multicrit ────────────────
  Error: The following packages could not be loaded: xgboost
  Backtrace:
       █
    1. └─mlr3hyperband:::test_tuner_hyperband(...) test_TunerHyperband.R:18:2
    2.   └─tuner$optimize(inst) helper.R:87:2
    3.     └─mlr3tuning:::.__Tuner__optimize(...)
    4.       └─bbotk::optimize_default(inst, self, private)
    5.         ├─base::tryCatch(...)
    6.         │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
    7.         │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8.         │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
    9.         └─private$.optimize(inst)
   10.           └─inst$eval_batch(xdt)
   11.             └─bbotk:::.__OptimInstance__eval_batch(...)
   12.               └─self$objective$eval_many(xss_trafoed)
   13.                 └─bbotk:::.__Objective__eval_many(...)
   14.                   └─private$.eval_many(xss)
   15.                     └─mlr3tuning:::.__ObjectiveTuning__.eval_many(...)
   16.                       └─mlr3::benchmark(design, store_models = self$store_models)
   17.                         └─future.apply::future_mapply(...)
   18.                           └─future.apply:::future_xapply(...)
   19.                             ├─future::value(fs)
   20.                             └─future:::value.list(fs)
   21.                               ├─future::resolve(...)
   22.                               └─future:::resolve.list(...)
   23.                                 └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   24.                                   └─future:::signalConditions(...)
  ── Error (test_TunerHyperband.R:75:3): TunerHyperband using CV ─────────────────
  Error: The following packages could not be loaded: xgboost
  Backtrace:
       █
    1. └─tuner$optimize(inst) test_TunerHyperband.R:75:2
    2.   └─mlr3tuning:::.__Tuner__optimize(...)
    3.     └─bbotk::optimize_default(inst, self, private)
    4.       ├─base::tryCatch(...)
    5.       │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
    6.       │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
    7.       │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
    8.       └─private$.optimize(inst)
    9.         └─inst$eval_batch(xdt)
   10.           └─bbotk:::.__OptimInstance__eval_batch(...)
   11.             └─self$objective$eval_many(xss_trafoed)
   12.               └─bbotk:::.__Objective__eval_many(...)
   13.                 └─private$.eval_many(xss)
   14.                   └─mlr3tuning:::.__ObjectiveTuning__.eval_many(...)
   15.                     └─mlr3::benchmark(design, store_models = self$store_models)
   16.                       └─future.apply::future_mapply(...)
   17.                         └─future.apply:::future_xapply(...)
   18.                           ├─future::value(fs)
   19.                           └─future:::value.list(fs)
   20.                             ├─future::resolve(...)
   21.                             └─future:::resolve.list(...)
   22.                               └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   23.                                 └─future:::signalConditions(...)
  ── Error (test_TunerHyperband.R:180:3): TunerHyperband using param trafo and non-integer eta ──
  Error: The following packages could not be loaded: xgboost
  Backtrace:
       █
    1. └─tuner$optimize(inst) test_TunerHyperband.R:180:2
    2.   └─mlr3tuning:::.__Tuner__optimize(...)
    3.     └─bbotk::optimize_default(inst, self, private)
    4.       ├─base::tryCatch(...)
    5.       │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
    6.       │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
    7.       │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
    8.       └─private$.optimize(inst)
    9.         └─inst$eval_batch(xdt)
   10.           └─bbotk:::.__OptimInstance__eval_batch(...)
   11.             └─self$objective$eval_many(xss_trafoed)
   12.               └─bbotk:::.__Objective__eval_many(...)
   13.                 └─private$.eval_many(xss)
   14.                   └─mlr3tuning:::.__ObjectiveTuning__.eval_many(...)
   15.                     └─mlr3::benchmark(design, store_models = self$store_models)
   16.                       └─future.apply::future_mapply(...)
   17.                         └─future.apply:::future_xapply(...)
   18.                           ├─future::value(fs)
   19.                           └─future:::value.list(fs)
   20.                             ├─future::resolve(...)
   21.                             └─future:::resolve.list(...)
   22.                               └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   23.                                 └─future:::signalConditions(...)
  ── Error (test_TunerHyperband.R:236:3): TunerHyperband using custom sampler ────
  Error: The following packages could not be loaded: xgboost
  Backtrace:
       █
    1. └─tuner$optimize(inst) test_TunerHyperband.R:236:2
    2.   └─mlr3tuning:::.__Tuner__optimize(...)
    3.     └─bbotk::optimize_default(inst, self, private)
    4.       ├─base::tryCatch(...)
    5.       │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
    6.       │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
    7.       │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
    8.       └─private$.optimize(inst)
    9.         └─inst$eval_batch(xdt)
   10.           └─bbotk:::.__OptimInstance__eval_batch(...)
   11.             └─self$objective$eval_many(xss_trafoed)
   12.               └─bbotk:::.__Objective__eval_many(...)
   13.                 └─private$.eval_many(xss)
   14.                   └─mlr3tuning:::.__ObjectiveTuning__.eval_many(...)
   15.                     └─mlr3::benchmark(design, store_models = self$store_models)
   16.                       └─future.apply::future_mapply(...)
   17.                         └─future.apply:::future_xapply(...)
   18.                           ├─future::value(fs)
   19.                           └─future:::value.list(fs)
   20.                             ├─future::resolve(...)
   21.                             └─future:::resolve.list(...)
   22.                               └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   23.                                 └─future:::signalConditions(...)
  
  [ FAIL 5 | WARN 7 | SKIP 0 | PASS 51 ]
  Error: Test failures
  Execution halted