Package check result: OK Changes to worse in reverse depends: Package: mlr3mbo Check: tests New result: ERROR Running ‘testthat.R’ [2s/2s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > if (requireNamespace("testthat", quietly = TRUE)) { + library(testthat) + library(mlr3mbo) + test_check("mlr3mbo") + } Loading required namespace: mlr3learners Loading required namespace: DiceKriging Loading required namespace: rgenoud Loading required package: mlr3 Error in `FUN()`: ! In path: "/home/hornik/tmp/CRAN_recheck/mlr3mbo.Rcheck/tests/testthat/helper.R" Caused by error in `REGR_KM_NOISY$encapsulate = c(train = "callr", predict = "callr")`: ! cannot change value of locked binding for 'encapsulate' Backtrace: ▆ 1. ├─testthat::test_check("mlr3mbo") 2. │ └─testthat::test_dir(...) 3. │ └─testthat:::test_files(...) 4. │ └─testthat:::test_files_serial(...) 5. │ └─testthat:::test_files_setup_state(...) 6. │ └─testthat::source_test_helpers(".", env) 7. │ └─testthat::source_dir(path, "^helper.*\\.[rR]$", env = env, wrap = FALSE) 8. │ └─base::lapply(...) 9. │ └─testthat (local) FUN(X[[i]], ...) 10. │ └─testthat::source_file(path, env = env, chdir = chdir, wrap = wrap) 11. │ ├─base::withCallingHandlers(...) 12. │ └─base::eval(exprs, env) 13. │ └─base::eval(exprs, env) 14. └─base::.handleSimpleError(...) at tests/testthat/helper.R:99:3 15. └─testthat (local) h(simpleError(msg, call)) 16. └─rlang::abort(...) Execution halted