- using R Under development (unstable) (2022-05-20 r82390)
- using platform: x86_64-pc-linux-gnu (64-bit)
- using session charset: ISO8859-15
- checking for file 'mlr3learners/DESCRIPTION' ... OK
- this is package 'mlr3learners' version '0.5.2'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... NOTE
Package suggested but not available for checking: 'mlr3proba'
- 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 serialization versions ... OK
- checking whether package 'mlr3learners' can be installed ... OK
- checking package directory ... OK
- checking for future file timestamps ... 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 R 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 ... [34s/46s] OK
- checking Rd files ... [2s/3s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... NOTE
Unknown package 'mlr3proba' in Rd xrefs
- 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 ... [7s/9s] ERROR
Running examples in 'mlr3learners-Ex.R' failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: mlr_learners_surv.cv_glmnet
> ### Title: Cross-Validated GLM with Elastic Net Regularization Survival
> ### Learner
> ### Aliases: mlr_learners_surv.cv_glmnet LearnerSurvCVGlmnet
>
> ### ** Examples
>
> if (requireNamespace("glmnet", quietly = TRUE)) {
+ learner = mlr3::lrn("surv.cv_glmnet")
+ print(learner)
+
+ # available parameters:
+ learner$param_set$ids()
+ }
Error in loadNamespace(x) : there is no package called 'mlr3proba'
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [156s/185s] ERROR
Running 'testthat.R' [155s/184s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> if (requireNamespace("testthat", quietly = TRUE)) {
+ library("testthat")
+ library("mlr3learners")
+ test_check("mlr3learners")
+ }
Loading required package: mlr3
[ FAIL 7 | WARN 0 | SKIP 2 | PASS 617 ]
== Skipped tests ===============================================================
* On CRAN (2)
== Failed tests ================================================================
-- Error (test_surv_cv_glmnet.R:5:3): autotest ---------------------------------
<packageNotFoundError/error/condition>
Error in `loadNamespace(x)`: there is no package called 'mlr3proba'
Backtrace:
x
1. +-mlr3::lrn("surv.cv_glmnet") at test_surv_cv_glmnet.R:5:2
2. | \-mlr3misc::dictionary_sugar_get(mlr_learners, .key, ...)
3. | \-mlr3misc:::dictionary_get(dict, .key)
4. | \-mlr3misc:::dictionary_initialize_item(key, obj, dots)
5. | +-base::do.call(constructor$new, cargs)
6. | \-R6 `<fn>`()
7. | \-R6 get_inherit()
8. | \-base::eval(inherit, parent_env, NULL)
9. | \-base::eval(inherit, parent_env, NULL)
10. \-base::loadNamespace(x)
11. \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
12. \-base withOneRestart(expr, restarts[[1L]])
13. \-base doWithOneRestart(return(expr), restart)
-- Error (test_surv_cv_glmnet.R:14:3): selected_features -----------------------
Error: Element with key 'gbcs' not found in DictionaryTask!
Backtrace:
x
1. \-mlr3::tsk("gbcs") at test_surv_cv_glmnet.R:14:2
2. \-mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
3. \-mlr3misc:::dictionary_get(dict, .key)
4. \-mlr3misc:::dictionary_retrieve_item(self, key)
5. \-mlr3misc::stopf(...)
-- Error (test_surv_glmnet.R:5:3): autotest ------------------------------------
<packageNotFoundError/error/condition>
Error in `loadNamespace(x)`: there is no package called 'mlr3proba'
Backtrace:
x
1. +-mlr3::lrn("surv.glmnet", lambda = 0.1) at test_surv_glmnet.R:5:2
2. | \-mlr3misc::dictionary_sugar_get(mlr_learners, .key, ...)
3. | +-checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
4. | | \-checkmate::checkR6(...)
5. | \-mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
6. | +-base::do.call(constructor$new, cargs)
7. | \-R6 `<fn>`()
8. | \-R6 get_inherit()
9. | \-base::eval(inherit, parent_env, NULL)
10. | \-base::eval(inherit, parent_env, NULL)
11. \-base::loadNamespace(x)
12. \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
13. \-base withOneRestart(expr, restarts[[1L]])
14. \-base doWithOneRestart(return(expr), restart)
-- Error (test_surv_glmnet.R:14:3): selected_features --------------------------
Error: Element with key 'gbcs' not found in DictionaryTask!
Backtrace:
x
1. \-mlr3::tsk("gbcs") at test_surv_glmnet.R:14:2
2. \-mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
3. \-mlr3misc:::dictionary_get(dict, .key)
4. \-mlr3misc:::dictionary_retrieve_item(self, key)
5. \-mlr3misc::stopf(...)
-- Error (test_surv_ranger.R:2:3): autotest ------------------------------------
<packageNotFoundError/error/condition>
Error in `loadNamespace(x)`: there is no package called 'mlr3proba'
Backtrace:
x
1. +-global with_seed(...) at test_surv_ranger.R:2:2
2. | \-base::force(expr)
3. +-mlr_learners$get("surv.ranger") at test_surv_ranger.R:3:4
4. | \-mlr3misc:::dictionary_get(self, key, ...)
5. | \-mlr3misc:::dictionary_initialize_item(key, obj, dots)
6. | +-base::do.call(constructor$new, cargs)
7. | \-R6 `<fn>`()
8. | \-R6 get_inherit()
9. | \-base::eval(inherit, parent_env, NULL)
10. | \-base::eval(inherit, parent_env, NULL)
11. \-base::loadNamespace(x)
12. \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
13. \-base withOneRestart(expr, restarts[[1L]])
14. \-base doWithOneRestart(return(expr), restart)
-- Error (test_surv_ranger.R:12:3): importance ---------------------------------
<packageNotFoundError/error/condition>
Error in `loadNamespace(x)`: there is no package called 'mlr3proba'
Backtrace:
x
1. +-mlr_learners$get("surv.ranger") at test_surv_ranger.R:12:2
2. | \-mlr3misc:::dictionary_get(self, key, ...)
3. | \-mlr3misc:::dictionary_initialize_item(key, obj, dots)
4. | +-base::do.call(constructor$new, cargs)
5. | \-R6 `<fn>`()
6. | \-R6 get_inherit()
7. | \-base::eval(inherit, parent_env, NULL)
8. | \-base::eval(inherit, parent_env, NULL)
9. \-base::loadNamespace(x)
10. \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
11. \-base withOneRestart(expr, restarts[[1L]])
12. \-base doWithOneRestart(return(expr), restart)
-- Error (test_surv_ranger.R:18:3): mtry.ratio ---------------------------------
Error: Element with key 'rats' not found in DictionaryTask!
Backtrace:
x
1. \-mlr3::tsk("rats") at test_surv_ranger.R:18:2
2. \-mlr3misc::dictionary_sugar_get(mlr_tasks, .key, ...)
3. \-mlr3misc:::dictionary_get(dict, .key)
4. \-mlr3misc:::dictionary_retrieve_item(self, key)
5. \-mlr3misc::stopf(...)
[ FAIL 7 | WARN 0 | SKIP 2 | PASS 617 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs, 2 NOTEs