Running ‘testthat.R’ [9s/18s]
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 objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  Loading required package: lhs
  > 
  > test_check("tuneRanger")
  Approximated time for tuning: 59Smtry = 2  OOB error = 0.03064783 
  Searching left ...
  mtry = 1 	OOB error = 0.03422789 
  -0.1168129 0.05 
  Searching right ...
  mtry = 4 	OOB error = 0.03679272 
  -0.2005 0.05 
  mtry = 3  OOB error = 11.82607 
  Searching left ...
  mtry = 2 	OOB error = 11.42324 
  0.03406336 0.05 
  Searching right ...
  mtry = 6 	OOB error = 11.47975 
  0.02928446 0.05 
  mtry = 3  OOB error = 0.4249337 
  Searching left ...
  mtry = 2 	OOB error = 0.4185914 
  0.01492537 0.05 
  Searching right ...
  mtry = 6 	OOB error = 0.437997 
  -0.03074181 0.05 
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_base.R:18:3): classification ranger ─────────────────────────────
  Error: non-finite value supplied by optim
  Backtrace:
       █
    1. └─tuneRanger::tuneRanger(...) test_base.R:18:2
    2.   └─mlrMBO::mbo(...)
    3.     ├─mlrMBO:::mboTemplate(opt.problem)
    4.     └─mlrMBO:::mboTemplate.OptProblem(opt.problem)
    5.       ├─mlrMBO:::mboTemplate(opt.state)
    6.       └─mlrMBO:::mboTemplate.OptState(opt.state)
    7.         └─mlrMBO::proposePoints(opt.state)
    8.           └─mlrMBO:::proposePointsByInfillOptimization(opt.state)
    9.             ├─models %??% getOptStateModels(opt.state)$models
   10.             └─mlrMBO:::getOptStateModels(opt.state)
   11.               └─mlrMBO:::trainModels(...)
   12.                 ├─mlrMBO:::measureTime(...)
   13.                 │ └─base::force(expr)
   14.                 └─mlr::train(learner, tasks[[i]])
   15.                   ├─mlr:::measureTime(...)
   16.                   │ └─base::force(expr)
   17.                   ├─mlr:::fun1(...)
   18.                   │ ├─utils::capture.output(suppressMessages(x))
   19.                   │ │ └─base::withVisible(...elt(i))
   20.                   │ └─base::suppressMessages(x)
   21.                   │   └─base::withCallingHandlers(...)
   22.                   ├─base:::fun2(fun3(do.call(trainLearner, pars)))
   23.                   ├─base:::fun3(do.call(trainLearner, pars))
   24.                   ├─base::do.call(trainLearner, pars)
   25.                   ├─(function (.learner, .task, .subset, .weights = NULL, ...) ...
   26.                   └─mlr:::trainLearner.regr.km(...)
   27.                     ├─base::do.call(...)
   28.                     └─(function (formula = ~1, design, response, covtype = "matern5_2", ...
   29.                       └─DiceKriging:::f(model, envir = envir.logLik)
   30.                         └─stats::optim(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 3 ]
  Error: Test failures
  Execution halted