Running ‘testthat_regression_tests.R’ [5m/15m]
Running the tests in ‘tests/testthat_regression_tests.R’ failed.
Complete output:
  > 
  > library("testthat")
  > library("patrick")
  > library("DoubleML")
  > 
  > testthat::test_check("DoubleML")
  [ FAIL 8 | WARN 0 | SKIP 11 | PASS 430 ]
  
  ══ Skipped tests (11) ══════════════════════════════════════════════════════════
  • On CRAN (11): 'test-double_ml_datasets.R:15:1',
    'test-double_ml_pliv_multi_z_parameter_passing.R:7:1',
    'test-double_ml_pliv_partial_x.R:5:1',
    'test-double_ml_pliv_partial_xz.R:7:1',
    'test-double_ml_pliv_partial_xz_parameter_passing.R:5:1',
    'test-double_ml_pliv_partial_z.R:5:1',
    'test-double_ml_pliv_partial_z_parameter_passing.R:5:1',
    'test-double_ml_print.R:16:3', 'test-double_ml_print.R:22:3',
    'test-double_ml_print.R:28:3', 'test-double_ml_print.R:34:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-double_ml_iivm_tuning.R:9:1'): (code run outside of `test_that()`) ──
  Error in `.__TunerRandomSearch__initialize(self = self, private = private, 
      super = super)`: object 'OptimizerRandomSearch' not found
  Backtrace:
       ▆
    1. └─mlr3tuning::tnr("random_search") at test-double_ml_iivm_tuning.R:9:1
    2.   └─mlr3misc::dictionary_sugar_get(mlr_tuners, .key, ...)
    3.     └─mlr3misc:::dictionary_get(dict, .key)
    4.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
    5.         ├─base::do.call(constructor$new, cargs)
    6.         └─R6 (local) `<fn>`()
    7.           └─mlr3tuning (local) initialize(...)
    8.             └─mlr3tuning:::.__TunerRandomSearch__initialize(...)
    9.               └─super$initialize(optimizer = OptimizerRandomSearch$new(), man = "mlr3tuning::mlr_tuners_random_search")
   10.                 └─mlr3tuning:::.__TunerFromOptimizer__initialize(...)
   11.                   └─bbotk::assert_optimizer(optimizer)
   12.                     └─checkmate::assert_r6(optimizer, "Optimizer")
   13.                       └─checkmate::checkR6(...)
  ── Error ('test-double_ml_irm_tuning.R:76:5'): Unit tests for tuning of PLR: rpart_dml2_ATE_FALSE_1 ──
  Error in `.__Tuner__optimize(self = self, private = private, super = super, 
      inst = inst)`: object 'ContextOptimization' not found
  Backtrace:
      ▆
   1. ├─rlang::eval_tidy(code, args)
   2. └─double_mlirm_obj_tuned$tune(...) at test-double_ml_irm_tuning.R:76:5
   3.   └─private$nuisance_tuning(...)
   4.     └─DoubleML:::dml_tune(...)
   5.       └─base::lapply(...)
   6.         └─DoubleML (local) FUN(X[[i]], ...)
   7.           └─DoubleML:::tune_instance(tune_settings$tuner, x)
   8.             └─tuner$optimize(tuning_instance)
   9.               └─mlr3tuning:::.__Tuner__optimize(...)
  ── Error ('test-double_ml_pliv_exception_handling.R:46:3'): Unit tests for deprecation warnings of PLIV ──
  Error in `.__Tuner__optimize(self = self, private = private, super = super, 
      inst = inst)`: object 'ContextOptimization' not found
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(dml_obj$tune(par_grids), regexp = msg) at test-double_ml_pliv_exception_handling.R:46:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─dml_obj$tune(par_grids)
    7.   └─super$tune(param_set, tune_settings, tune_on_folds)
    8.     └─private$nuisance_tuning(...)
    9.       └─private$nuisance_tuning_partialX(...)
   10.         └─DoubleML:::dml_tune(...)
   11.           └─base::lapply(...)
   12.             └─DoubleML (local) FUN(X[[i]], ...)
   13.               └─DoubleML:::tune_instance(tune_settings$tuner, x)
   14.                 └─tuner$optimize(tuning_instance)
   15.                   └─mlr3tuning:::.__Tuner__optimize(...)
  ── Error ('test-double_ml_pliv_tuning.R:98:5'): Unit tests for tuning of PLIV dml2_partialling out_1_FALSE ──
  Error in `.__Tuner__optimize(self = self, private = private, super = super, 
      inst = inst)`: object 'ContextOptimization' not found
  Backtrace:
       ▆
    1. ├─rlang::eval_tidy(code, args)
    2. └─double_mlpliv_obj_tuned$tune(...) at test-double_ml_pliv_tuning.R:98:5
    3.   └─super$tune(param_set, tune_settings, tune_on_folds)
    4.     └─private$nuisance_tuning(...)
    5.       └─private$nuisance_tuning_partialX(...)
    6.         └─DoubleML:::dml_tune(...)
    7.           └─base::lapply(...)
    8.             └─DoubleML (local) FUN(X[[i]], ...)
    9.               └─DoubleML:::tune_instance(tune_settings$tuner, x)
   10.                 └─tuner$optimize(tuning_instance)
   11.                   └─mlr3tuning:::.__Tuner__optimize(...)
  ── Error ('test-double_ml_pliv_tuning.R:188:5'): Unit tests for tuning of PLIV (multiple Z) dml2_partialling out_1_FALSE ──
  Error in `.__Tuner__optimize(self = self, private = private, super = super, 
      inst = inst)`: object 'ContextOptimization' not found
  Backtrace:
       ▆
    1. ├─rlang::eval_tidy(code, args)
    2. └─double_mlpliv_obj_tuned$tune(...) at test-double_ml_pliv_tuning.R:188:5
    3.   └─super$tune(param_set, tune_settings, tune_on_folds)
    4.     └─private$nuisance_tuning(...)
    5.       └─private$nuisance_tuning_partialX(...)
    6.         └─DoubleML:::dml_tune(...)
    7.           └─base::lapply(...)
    8.             └─DoubleML (local) FUN(X[[i]], ...)
    9.               └─DoubleML:::tune_instance(tune_settings$tuner, x)
   10.                 └─tuner$optimize(tuning_instance)
   11.                   └─mlr3tuning:::.__Tuner__optimize(...)
  ── Error ('test-double_ml_plr_exception_handling.R:176:3'): Unit tests for deprecation warnings of PLR ──
  Error in `.__Tuner__optimize(self = self, private = private, super = super, 
      inst = inst)`: object 'ContextOptimization' not found
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(dml_obj$tune(par_grids), regexp = msg) at test-double_ml_plr_exception_handling.R:176:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─dml_obj$tune(par_grids)
    7.   └─super$tune(param_set, tune_settings, tune_on_folds)
    8.     └─private$nuisance_tuning(...)
    9.       └─DoubleML:::dml_tune(...)
   10.         └─base::lapply(...)
   11.           └─DoubleML (local) FUN(X[[i]], ...)
   12.             └─DoubleML:::tune_instance(tune_settings$tuner, x)
   13.               └─tuner$optimize(tuning_instance)
   14.                 └─mlr3tuning:::.__Tuner__optimize(...)
  ── Error ('test-double_ml_plr_tuning.R:95:5'): Unit tests for tuning of PLR: regr.rpart_regr.rpart_dml2_partialling out_1_FALSE ──
  Error in `.__Tuner__optimize(self = self, private = private, super = super, 
      inst = inst)`: object 'ContextOptimization' not found
  Backtrace:
       ▆
    1. ├─rlang::eval_tidy(code, args)
    2. └─double_mlplr_obj_tuned$tune(...) at test-double_ml_plr_tuning.R:95:5
    3.   └─super$tune(param_set, tune_settings, tune_on_folds)
    4.     └─private$nuisance_tuning(...)
    5.       └─DoubleML:::dml_tune(...)
    6.         └─base::lapply(...)
    7.           └─DoubleML (local) FUN(X[[i]], ...)
    8.             └─DoubleML:::tune_instance(tune_settings$tuner, x)
    9.               └─tuner$optimize(tuning_instance)
   10.                 └─mlr3tuning:::.__Tuner__optimize(...)
  ── Error ('test-double_ml_plr_tuning.R:95:5'): Unit tests for tuning of PLR: regr.rpart_regr.rpart_dml2_partialling out_1_TRUE ──
  Error in `.__Tuner__optimize(self = self, private = private, super = super, 
      inst = inst)`: object 'ContextOptimization' not found
  Backtrace:
       ▆
    1. ├─rlang::eval_tidy(code, args)
    2. └─double_mlplr_obj_tuned$tune(...) at test-double_ml_plr_tuning.R:95:5
    3.   └─super$tune(param_set, tune_settings, tune_on_folds)
    4.     └─private$nuisance_tuning(...)
    5.       └─DoubleML:::dml_tune(...)
    6.         └─base::lapply(...)
    7.           └─DoubleML (local) FUN(X[[i]], ...)
    8.             └─DoubleML:::tune_instance(tune_settings$tuner, x)
    9.               └─tuner$optimize(tuning_instance)
   10.                 └─mlr3tuning:::.__Tuner__optimize(...)
  
  [ FAIL 8 | WARN 0 | SKIP 11 | PASS 430 ]
  Error: Test failures
  Execution halted