Running ‘testthat.R’ [191s/214s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("testthat")
  +   library("checkmate")
  +   test_check("bbotk")
  + }
  Loading required package: bbotk
  Loading required package: paradox
  [ FAIL 4 | WARN 0 | SKIP 53 | PASS 1160 ]
  
  ══ Skipped tests (53) ══════════════════════════════════════════════════════════
  • On CRAN (52): 'test_ArchiveAsync.R:2:3', 'test_ArchiveAsync.R:61:3',
    'test_ArchiveAsyncFrozen.R:2:3', 'test_ArchiveBatch.R:1:1',
    'test_CallbackAsync.R:4:3', 'test_CallbackAsync.R:31:3',
    'test_CallbackAsync.R:59:3', 'test_CallbackAsync.R:88:3',
    'test_CallbackAsync.R:118:3', 'test_CallbackAsync.R:154:3',
    'test_CallbackAsync.R:183:3', 'test_CallbackAsync.R:210:3',
    'test_CallbackAsync.R:239:3', 'test_CallbackAsync.R:269:3',
    'test_CallbackAsync.R:297:3', 'test_Objective.R:1:1',
    'test_OptimInstanceAsyncSingleCrit.R:2:3',
    'test_OptimInstanceAsyncSingleCrit.R:26:3',
    'test_OptimInstanceAsyncSingleCrit.R:45:3',
    'test_OptimInstanceAsyncSingleCrit.R:65:3',
    'test_OptimInstanceAsyncSingleCrit.R:82:3',
    'test_OptimInstanceAsyncSingleCrit.R:109:3',
    'test_OptimInstanceBatchMultiCrit.R:1:1',
    'test_OptimInstanceBatchSingleCrit.R:1:1',
    'test_OptimizerAsynDesignPoints.R:2:3', 'test_OptimizerAsynGridSearch.R:2:3',
    'test_OptimizerAsync.R:2:3', 'test_OptimizerAsync.R:26:3',
    'test_OptimizerAsync.R:50:3', 'test_OptimizerAsync.R:73:3',
    'test_OptimizerAsync.R:95:3', 'test_OptimizerAsync.R:124:3',
    'test_OptimizerAsync.R:155:3', 'test_OptimizerAsync.R:178:3',
    'test_OptimizerAsyncRandomSearch.R:2:3', 'test_OptimizerBatchCmaes.R:1:1',
    'test_OptimizerBatchDesignPoints.R:1:1',
    'test_OptimizerBatchFocusSearch.R:1:1', 'test_OptimizerBatchGenSA.R:1:1',
    'test_OptimizerBatchGridSearch.R:1:1', 'test_OptimizerBatchNLoptr.R:1:1',
    'test_OptimizerBatchRandomSearch.R:1:1', 'test_TerminatorClockTime.R:1:1',
    'test_TerminatorCombo.R:1:1', 'test_TerminatorEvals.R:1:1',
    'test_TerminatorNone.R:1:1', 'test_TerminatorPerfReached.R:1:1',
    'test_TerminatorRunTime.R:2:5', 'test_TerminatorStagnation.R:1:1',
    'test_TerminatorStagnationBatch.R:1:1',
    'test_TerminatorStagnationBatch.R:15:1', 'test_mlr_callbacks.R:58:3'
  • TRUE is TRUE (1): 'test_mlr_callbacks.R:19:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_OptimizerBatchIrace.R:23:3'): OptimizerBatchIrace minimize works ──
  Error in ``[.data.table`(log, , `:=`("step", rleid("instance")), by = "iteration")`: attempt access index 5/5 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─utils::capture.output(optimizer$optimize(instance)) at test_OptimizerBatchIrace.R:23:3
    2. │ └─base::withVisible(...elt(i))
    3. └─optimizer$optimize(instance)
    4.   └─bbotk:::.__OptimizerBatch__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.         └─bbotk:::.__OptimizerBatchIrace__.optimize(...)
   12.           ├─log[, `:=`("step", rleid("instance")), by = "iteration"]
   13.           └─data.table:::`[.data.table`(...)
  ── Error ('test_OptimizerBatchIrace.R:63:3'): OptimizerBatchIrace maximize works ──
  Error in ``[.data.table`(log, , `:=`("step", rleid("instance")), by = "iteration")`: attempt access index 5/5 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─utils::capture.output(optimizer$optimize(instance)) at test_OptimizerBatchIrace.R:63:3
    2. │ └─base::withVisible(...elt(i))
    3. └─optimizer$optimize(instance)
    4.   └─bbotk:::.__OptimizerBatch__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.         └─bbotk:::.__OptimizerBatchIrace__.optimize(...)
   12.           ├─log[, `:=`("step", rleid("instance")), by = "iteration"]
   13.           └─data.table:::`[.data.table`(...)
  ── Error ('test_OptimizerBatchIrace.R:129:3'): OptimizerBatchIrace works with passed constants set ──
  Error in ``[.data.table`(log, , `:=`("step", rleid("instance")), by = "iteration")`: attempt access index 5/5 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─utils::capture.output(optimizer$optimize(instance)) at test_OptimizerBatchIrace.R:129:3
    2. │ └─base::withVisible(...elt(i))
    3. └─optimizer$optimize(instance)
    4.   └─bbotk:::.__OptimizerBatch__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.         └─bbotk:::.__OptimizerBatchIrace__.optimize(...)
   12.           ├─log[, `:=`("step", rleid("instance")), by = "iteration"]
   13.           └─data.table:::`[.data.table`(...)
  ── Error ('test_OptimizerBatchIrace.R:154:3'): OptimizerBatchIrace works without passed constants set ──
  Error in ``[.data.table`(log, , `:=`("step", rleid("instance")), by = "iteration")`: attempt access index 5/5 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─utils::capture.output(optimizer$optimize(instance)) at test_OptimizerBatchIrace.R:154:3
    2. │ └─base::withVisible(...elt(i))
    3. └─optimizer$optimize(instance)
    4.   └─bbotk:::.__OptimizerBatch__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.         └─bbotk:::.__OptimizerBatchIrace__.optimize(...)
   12.           ├─log[, `:=`("step", rleid("instance")), by = "iteration"]
   13.           └─data.table:::`[.data.table`(...)
  
  [ FAIL 4 | WARN 0 | SKIP 53 | PASS 1160 ]
  Error:
  ! Test failures.
  Execution halted