Running ‘testthat.R’ [5s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # setting R_TESTS to empty string because of
  > # https://github.com/hadley/testthat/issues/144
  > # revert this when that issue in R is fixed.
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(checkmate)
  > library(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
  
  > 
  > # 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))")
  + }
  ── 1. Error: mbo works with km (@test_mbo_km.R#11)  ────────────────────────────
  argument "def" is missing, with no default
  1: mbo(testf.fsphere.2d, des, learner = learner, control = ctrl) at testthat/test_mbo_km.R:11
  2: mboTemplate(opt.problem)
  3: mboTemplate.OptProblem(opt.problem)
  4: mboTemplate(opt.state)
  5: mboTemplate.OptState(opt.state)
  6: evalProposedPoints.OptState(opt.state, prop)
  7: evalTargetFun.OptState(opt.state, xs = xs, extras = extras)
  8: parallelMap(wrapFun, xs.trafo, level = "mlrMBO.feval", impute.error = if (is.null(imputeY)) NULL else identity)
  9: options(parallelMap.nextmap = (getPMOptNextMap() + 1L))
  10: getPMOptNextMap()
  11: getPMOption("nextmap")
  12: getOption(sprintf("parallelMap.%s", opt), def)
  
  ── 2. Error: mbo works with impute and failure model (@test_mbo_km.R#69)  ──────
  argument "def" is missing, with no default
  1: mbo(testf.fsphere.2d, des, learner = learner, control = ctrl) at testthat/test_mbo_km.R:69
  2: mboTemplate(opt.problem)
  3: mboTemplate.OptProblem(opt.problem)
  4: mboTemplate(opt.state)
  5: mboTemplate.OptState(opt.state)
  6: evalProposedPoints.OptState(opt.state, prop)
  7: evalTargetFun.OptState(opt.state, xs = xs, extras = extras)
  8: parallelMap(wrapFun, xs.trafo, level = "mlrMBO.feval", impute.error = if (is.null(imputeY)) NULL else identity)
  9: options(parallelMap.nextmap = (getPMOptNextMap() + 1L))
  10: getPMOptNextMap()
  11: getPMOption("nextmap")
  12: getOption(sprintf("parallelMap.%s", opt), def)
  
  ── 3. Error: mbo works with rf (@test_mbo_rf.R#8)  ─────────────────────────────
  argument "def" is missing, with no default
  1: mbo(testf.fsphere.2d, testd.fsphere.2d, learner, ctrl, show.info = TRUE) at testthat/test_mbo_rf.R:8
  2: mboTemplate(opt.problem)
  3: mboTemplate.OptProblem(opt.problem)
  4: evalMBODesign.OptState(opt.state)
  5: evalTargetFun.OptState(opt.state, xs, extras)
  6: parallelMap(wrapFun, xs.trafo, level = "mlrMBO.feval", impute.error = if (is.null(imputeY)) NULL else identity)
  7: options(parallelMap.nextmap = (getPMOptNextMap() + 1L))
  8: getPMOptNextMap()
  9: getPMOption("nextmap")
  10: getOption(sprintf("parallelMap.%s", opt), def)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1 SKIPPED: 0 FAILED: 3
  1. Error: mbo works with km (@test_mbo_km.R#11) 
  2. Error: mbo works with impute and failure model (@test_mbo_km.R#69) 
  3. Error: mbo works with rf (@test_mbo_rf.R#8) 
  
  Error: testthat unit tests failed
  Execution halted