Running ‘testthat.R’ [21s/25s]
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
  'mlr' is in maintenance mode since July 2019. Future development
  efforts will go into its successor 'mlr3' (<https://mlr3.mlr-org.com>).
  Loading required package: smoof
  Loading required package: checkmate
  Loading required package: parallel
  Loading required package: lubridate
  
  Attaching package: 'lubridate'
  
  The following object is masked from 'package:base':
  
      date
  
  Loading required package: lhs
  > 
  > test_check("tuneRanger")
  Approximated time for tuning: 56Smtry = 2  OOB error = 0.0377877 
  Searching left ...
  mtry = 1 	OOB error = 0.03306196 
  0.1250604 0.05 
  Searching right ...
  mtry = 4 	OOB error = 0.03411406 
  -0.03182197 0.05 
  mtry = 3  OOB error = 10.80949 
  Searching left ...
  mtry = 2 	OOB error = 11.99709 
  -0.1098659 0.05 
  Searching right ...
  mtry = 6 	OOB error = 10.11695 
  0.06406825 0.05 
  mtry = 12 	OOB error = 11.93257 
  -0.1794632 0.05 
  mtry = 3  OOB error = 0.4326959 
  Searching left ...
  mtry = 2 	OOB error = 0.4185914 
  0.03259681 0.05 
  Searching right ...
  mtry = 6 	OOB error = 0.4108292 
  0.05053599 0.05 
  mtry = 9 	OOB error = 0.408936 
  0.004608295 0.05 
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  ── 1. Error: tuneMtryFast (@test_base.R#46)  ───────────────────────────────────
  User interrupt or internal error.
  Backtrace:
    1. mlr::train(learner, lung.task)
    9. tuneRanger:::trainLearner.surv.tuneMtryFast(...)
   10. tuneRanger::tuneMtryFast(...)
   11. ranger::ranger(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 6 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: tuneMtryFast (@test_base.R#46) 
  
  Error: testthat unit tests failed
  Execution halted