Running ‘testthat.R’ [294s/384s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library(testthat)
  +   library(checkmate)
  +   library(mlr3mbo)
  +   test_check("mlr3mbo")
  + }
  Loading required package: mlr3
  Loading required package: mlr3tuning
  Loading required package: paradox
  
  Attaching package: 'mlr3mbo'
  
  The following object is masked from 'package:testthat':
  
      it
  
  Loading required namespace: mlr3learners
  Loading required namespace: DiceKriging
  Loading required namespace: rgenoud
  Saving _problems/test_AcqFunctionEILog-41.R
  Saving _problems/test_AcqFunctionEILog-50.R
  Saving _problems/test_AcqFunctionMean-12.R
  Saving _problems/test_AcqOptimizerDirect-53.R
  WARN  [17:54:17.240] [bbotk] Caught the following error: 
  x Acquisition function optimization failed.
  > Class: Mlr3ErrorMboAcqOptimizer
  Caused by:
    Optimizer Error.
  
  WARN  [17:54:17.602] [bbotk] Caught the following error: 
  x Surrogate update failed.
  > Class: Mlr3ErrorMboSurrogateUpdate
  Caused by:
    x Surrogate Train Error.
    > Class: Mlr3ErrorLearnerTrain
  
  WARN  [17:54:18.030] [bbotk] Caught the following error: 
  x Acquisition function optimization failed.
  > Class: Mlr3ErrorMboAcqOptimizer
  Caused by:
    x Surrogate Predict Error.
    > Class: Mlr3ErrorLearnerPredict
  
  [ FAIL 4 | WARN 9 | SKIP 11 | PASS 1159 ]
  
  ══ Skipped tests (11) ══════════════════════════════════════════════════════════
  • On CRAN (11): 'test_AcqFunctionEHVIGH.R:38:3',
    'test_AcqFunctionStochasticCB.R:2:1', 'test_AcqFunctionStochasticEI.R:2:1',
    'test_OptimizerADBO.R:2:1', 'test_OptimizerAsyncMbo.R:2:1',
    'test_OptimizerMbo.R:2:3', 'test_ResultAssignerSurrogate.R:18:3',
    'test_TunerADBO.R:2:1', 'test_TunerAsyncMbo.R:2:1', 'test_TunerMbo.R:2:3',
    'test_conditions.R:5:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_AcqFunctionEILog.R:41:3'): AcqFunctionEILog works ────────────
  Check on 'res' failed: Must have exactly 5 rows, but has 0 rows
  Backtrace:
      ▆
   1. └─checkmate::expect_data_table(res, ncols = 1L, nrows = 5L, any.missing = FALSE) at test_AcqFunctionEILog.R:41:3
   2.   └─checkmate::makeExpectation(x, res, info, label)
  ── Failure ('test_AcqFunctionEILog.R:50:3'): AcqFunctionEILog works ────────────
  Expected `res` to equal `res_maximize`.
  Differences:
    `attr(actual, 'row.names')`:          
  `attr(expected, 'row.names')`: 1 2 3 4 5
  
  `actual$acq_ei_log` is a logical vector ()
  `expected$acq_ei_log` is a double vector (4.16221836663976e-05, 4.16221836663976e-05, 4.16221836663976e-05, 4.16221836663976e-05, 4.16221836663976e-05)
  
  ── Error ('test_AcqFunctionMean.R:12:3'): AcqFunctionMean works ────────────────
  Error in `file(file, if (append) "a" else "w")`: cannot open the connection
  Backtrace:
       ▆
    1. └─global expect_learner(acqf$surrogate$learner) at test_AcqFunctionMean.R:12:3
    2.   └─testthat::expect_output(print(lrn))
    3.     └─testthat:::quasi_capture(...)
    4.       └─testthat (local) .capture(...)
    5.         └─testthat::capture_output_lines(code, print, width = width)
    6.           └─testthat:::eval_with_output(code, print = print, width = width)
    7.             └─withr::with_output_sink(path, withVisible(code))
    8.               └─withr:::set_output_sink(file = new, append = append, split = split)
    9.                 └─withr:::output_sink(file = file, append = append, split = split)
   10.                   └─base::sink(file = file, append = append, type = "output", split = split)
   11.                     └─base::file(file, if (append) "a" else "w")
  ── Error ('test_AcqOptimizerDirect.R:53:3'): AcqOptimizerDirect works with instance ──
  <objectNotFoundError/error/condition>
  Error in `.__AcqOptimizerDirect__optimize(self = self, private = private, super = super)`: object 'x' not found
  Backtrace:
       ▆
    1. ├─checkmate::expect_data_table(optimizer$optimize(instance), nrows = 1L) at test_AcqOptimizerDirect.R:53:3
    2. │ └─checkmate::checkDataTable(...)
    3. └─optimizer$optimize(instance)
    4.   └─mlr3mbo:::.__OptimizerMbo__optimize(...)
    5.     └─bbotk::optimize_batch_default(inst, self)
    6.       ├─base::tryCatch(...)
    7.       │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    8.       │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    9.       │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   10.       └─get_private(optimizer)$.optimize(instance)
   11.         └─mlr3mbo:::.__OptimizerMbo__.optimize(...)
   12.           ├─mlr3misc::invoke(...)
   13.           │ └─base::eval.parent(expr, n = 1L)
   14.           │   └─base::eval(expr, p)
   15.           │     └─base::eval(expr, p)
   16.           └─self$loop_function(...)
   17.             ├─base::tryCatch(...)
   18.             │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   19.             │   ├─base (local) tryCatchOne(...)
   20.             │   │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   21.             │   └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   22.             │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   23.             │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   24.             └─acq_optimizer$optimize()
   25.               └─mlr3mbo:::.__AcqOptimizerDirect__optimize(...)
   26.                 ├─data.table::as.data.table(...)
   27.                 ├─base::as.list(...)
   28.                 └─mlr3misc::set_names(...)
  
  [ FAIL 4 | WARN 9 | SKIP 11 | PASS 1159 ]
  Error:
  ! Test failures.
  Warning message:
  In dir.create(path, recursive = TRUE) :
    cannot create dir '/tmp/RtmpiQGJUr/file184d994a55ee74', reason 'No space left on device'
  Execution halted