- using R version 4.3.3 (2024-02-29 ucrt)
- using platform: x86_64-w64-mingw32 (64-bit)
- R was compiled by
gcc.exe (GCC) 12.3.0
GNU Fortran (GCC) 12.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'tuneRanger/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'tuneRanger' version '0.7'
- 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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'tuneRanger' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- 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 R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [4s] OK
- checking whether the package can be loaded with stated dependencies ... [3s] OK
- checking whether the package can be unloaded cleanly ... [4s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s] OK
- checking whether the namespace can be unloaded cleanly ... [4s] OK
- checking loading without being on the library search path ... [4s] 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 ... [10s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... 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 ... [7s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [34s] ERROR
Running 'testthat.R' [33s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(tuneRanger)
Loading required package: ranger
Loading required package: mlrMBO
Loading required package: mlr
Loading required package: ParamHelpers
Loading required package: smoof
Loading required package: checkmate
Loading required package: parallel
Loading required package: lhs
>
> test_check("tuneRanger")
Approximated time for tuning: 53Smtry = 2 OOB error = 0.03959951
Searching left ...
mtry = 1 OOB error = 0.03581858
0.09547934 0.05
Searching right ...
mtry = 4 OOB error = 0.03368273
0.05962955 0.05
mtry = 3 OOB error = 10.99107
Searching left ...
mtry = 2 OOB error = 13.27389
-0.2076978 0.05
Searching right ...
mtry = 6 OOB error = 12.98674
-0.1815717 0.05
mtry = 3 OOB error = 0.4414994
Searching left ...
mtry = 2 OOB error = 0.4342105
0.01650943 0.05
Searching right ...
mtry = 6 OOB error = 0.4110186
0.06903945 0.05
mtry = 9 OOB error = 0.4084627
0.006218333 0.05
Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 6 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_base.R:46:3'): tuneMtryFast ────────────────────────────────────
Error in `ranger(formula, data, dependent.variable.name = dependent.variable.name,
mtry = res[which.min(res[, 2]), 1], ...)`: User interrupt or internal error.
Backtrace:
▆
1. └─mlr::train(learner, lung.task) at test_base.R:46:3
2. ├─mlr:::measureTime(...)
3. │ └─base::force(expr)
4. ├─base (local) fun1(...)
5. ├─base (local) fun2(fun3(do.call(trainLearner, pars)))
6. ├─base (local) fun3(do.call(trainLearner, pars))
7. ├─base::do.call(trainLearner, pars)
8. ├─mlr (local) `<fn>`(.learner = `<srv.tnMF>`, .task = `<SurvTask>`, .subset = NULL)
9. └─tuneRanger:::trainLearner.surv.tuneMtryFast(...)
10. └─tuneRanger::tuneMtryFast(...)
11. └─ranger::ranger(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 6 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [17s] OK
- checking HTML version of manual ... [1s] OK
- DONE
Status: 1 ERROR