Running 'testthat.R' [16s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > # the unit tests take pretty long, that can be a problem on WB and cran (and maybe annoying locally)
  > # so we run all tests only on travis and if a certain user env var is set
  > if (identical(Sys.getenv("TRAVIS"), "true") || identical(Sys.getenv("R_EXPENSIVE_TEST_OK"), "true")) {
  +   test_check("mlrMBO")
  + } else {
  +   test_check("mlrMBO", filter = "((mbo_rf)|(mbo_km))")
  + }
  Loading required package: mlrMBO
  Loading required package: mlr
  Loading required package: ParamHelpers
  Loading required package: smoof
  Loading required package: BBmisc
  
  Attaching package: 'BBmisc'
  
  The following object is masked from 'package:base':
  
      isFALSE
  
  Loading required package: checkmate
  -- 1. Error: mbo works with rf (@test_mbo_rf.R#89)  ----------------------------
  REAL() can only be applied to a 'numeric', not a 'character'
  1: mbo(f, des, learner, ctrl) at testthat/test_mbo_rf.R:89
  2: mboTemplate(opt.problem)
  3: mboTemplate.OptProblem(opt.problem)
  4: mboTemplate(opt.state)
  5: mboTemplate.OptState(opt.state)
  6: proposePoints(opt.state)
  7: proposePointsByInfillOptimization(opt.state)
  8: measureTime({
         prop.points = infill.opt.fun(infill.crit.fun, models = models, control = control, 
             par.set = par.set, opt.path = opt.path, designs = designs, iter = iter, progress = progress, 
             ...)
     })
  9: force(expr)
  10: infill.opt.fun(infill.crit.fun, models = models, control = control, par.set = par.set, 
         opt.path = opt.path, designs = designs, iter = iter, progress = progress, ...)
  11: generateDesign(control$infill.opt.focussearch.points, ps.local, randomLHS)
  
  == testthat results  ===========================================================
  OK: 47 SKIPPED: 0 WARNINGS: 0 FAILED: 1
  1. Error: mbo works with rf (@test_mbo_rf.R#89) 
  
  Error: testthat unit tests failed
  Execution halted