- using R Under development (unstable) (2024-06-28 r86849)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (GCC) 14.1.0
GNU Fortran (GCC) 14.1.0
- running under: Fedora Linux 36 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘mlr3tuningspaces/DESCRIPTION’ ... OK
- this is package ‘mlr3tuningspaces’ version ‘0.5.1’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘mlr3tuningspaces’ can be installed ... [23s/51s] OK
See the install log for details.
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [7s/12s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking examples ... ERROR
Running examples in ‘mlr3tuningspaces-Ex.R’ failed
The error most likely occurred in:
> ### Name: TuningSpace
> ### Title: Tuning Spaces
> ### Aliases: TuningSpace
>
> ### ** Examples
>
> library(mlr3tuning)
>
> # get default tuning space of rpart learner
> tuning_space = lts("classif.rpart.default")
>
> # get learner and set tuning space
> learner = lrn("classif.rpart")
> learner$param_set$values = tuning_space$values
>
> # tune learner
> instance = tune(
+ tnr("random_search"),
+ task = tsk("pima"),
+ learner = learner,
+ resampling = rsmp ("holdout"),
+ measure = msr("classif.ce"),
+ term_evals = 10)
Error in .__TunerRandomSearch__initialize(self = self, private = private, :
object 'OptimizerRandomSearch' not found
Calls: tune ... .__TunerFromOptimizer__initialize -> assert_optimizer -> assert_r6 -> checkR6
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [65s/84s] ERROR
Running ‘testthat.R’ [64s/83s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> if (requireNamespace("testthat", quietly = TRUE)) {
+ library("testthat")
+ library("checkmate")
+ library("mlr3tuningspaces")
+ test_check("mlr3tuningspaces")
+ }
Loading required package: mlr3tuning
Loading required package: mlr3
Loading required package: paradox
OptimInstanceSingleCrit is deprecated. Use OptimInstanceBatchSingleCrit instead.
OptimInstanceMultiCrit is deprecated. Use OptimInstanceBatchMultiCrit instead.
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 1338 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_as_search_space.R:30:3'): search space from TuningSpace works ──
Error in `.__TunerRandomSearch__initialize(self = self, private = private,
super = super)`: object 'OptimizerRandomSearch' not found
Backtrace:
▆
1. ├─AutoTuner$new(...) at test_as_search_space.R:30:3
2. │ └─mlr3tuning (local) initialize(...)
3. │ └─mlr3tuning:::.__AutoTuner__initialize(...)
4. │ └─mlr3tuning:::assert_tuner(tuner)
5. │ └─checkmate::assert_r6(tuner, "Tuner")
6. │ └─checkmate::checkR6(...)
7. └─mlr3tuning::tnr("random_search")
8. └─mlr3misc::dictionary_sugar_get(mlr_tuners, .key, ...)
9. └─mlr3misc:::dictionary_get(dict, .key)
10. └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
11. ├─base::do.call(constructor$new, cargs)
12. └─R6 (local) `<fn>`()
13. └─mlr3tuning (local) initialize(...)
14. └─mlr3tuning:::.__TunerRandomSearch__initialize(...)
15. └─super$initialize(optimizer = OptimizerRandomSearch$new(), man = "mlr3tuning::mlr_tuners_random_search")
16. └─mlr3tuning:::.__TunerFromOptimizer__initialize(...)
17. └─bbotk::assert_optimizer(optimizer)
18. └─checkmate::assert_r6(optimizer, "Optimizer")
19. └─checkmate::checkR6(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 1338 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [8s/20s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs