Running ‘testthat.R’ [192s/278s]
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 1 | WARN 0 | SKIP 50 | PASS 732 ]
  
  ══ Skipped tests (50) ══════════════════════════════════════════════════════════
  • On CRAN (49): 'test_ArchiveAsync.R:2:3', 'test_ArchiveAsync.R:61:3',
    'test_ArchiveBatch.R:3:3', 'test_CallbackAsync.R:4:3',
    'test_CallbackAsync.R:29:3', 'test_CallbackAsync.R:55:3',
    'test_CallbackAsync.R:82:3', 'test_CallbackAsync.R:110:3',
    'test_CallbackAsync.R:144:3', 'test_CallbackAsync.R:171:3',
    'test_CallbackAsync.R:196:3', 'test_CallbackAsync.R:223:3',
    'test_CallbackAsync.R:251:3', 'test_CallbackAsync.R:277:3',
    'test_Objective.R:9:3', 'test_OptimInstanceAsyncSingleCrit.R:2:3',
    'test_OptimInstanceAsyncSingleCrit.R:25:3',
    'test_OptimInstanceAsyncSingleCrit.R:43:3',
    'test_OptimInstanceAsyncSingleCrit.R:61:3',
    'test_OptimInstanceAsyncSingleCrit.R:78:3',
    'test_OptimInstanceBatchMultiCrit.R:3:3',
    'test_OptimInstanceBatchSingleCrit.R:8:3',
    'test_OptimizerAsynDesignPoints.R:2:3', 'test_OptimizerAsynGridSearch.R:2:3',
    'test_OptimizerAsync.R:2:3', 'test_OptimizerAsync.R:24:3',
    'test_OptimizerAsync.R:61:3', 'test_OptimizerAsync.R:82:3',
    'test_OptimizerAsync.R:110:3', 'test_OptimizerAsyncRandomSearch.R:2:3',
    'test_OptimizerCmaes.R:28:3', 'test_OptimizerDesignPoints.R:5:3',
    'test_OptimizerFocusSearch.R:4:3', 'test_OptimizerGenSA.R:6:3',
    'test_OptimizerGridSearch.R:4:3', 'test_OptimizerLocalSearch.R:4:3',
    'test_OptimizerLocalSearch.R:26:3', 'test_OptimizerLocalSearch.R:49:3',
    'test_OptimizerNLoptr.R:9:3', 'test_OptimizerRandomSearch.R:4:3',
    'test_TerminatorClockTime.R:5:3', 'test_TerminatorCombo.R:6:3',
    'test_TerminatorEvals.R:5:3', 'test_TerminatorNone.R:5:3',
    'test_TerminatorPerfReached.R:4:3', 'test_TerminatorRunTime.R:2:5',
    'test_TerminatorStagnation.R:5:3', 'test_TerminatorStagnationBatch.R:5:3',
    'test_TerminatorStagnationBatch.R:19:3'
  • TRUE is TRUE (1): 'test_mlr_callbacks.R:19:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_OptimizerIrace.R:129:3'): OptimizerBatchIrace works with passed constants set ──
  Error in `if (any(left >= 0L)) {
      combs <- combs[left >= 0]
      n <- n[left >= 0]
      winner <- which.max(n)
      conf_needs <- conf_needs[combs[[winner]]]
      conf_ids <- names(conf_needs)
      cat(sep = "", "# Configurations selected: ", paste0(collapse = ", ", 
          conf_ids), ".\n# Pending instances: ", paste0(collapse = ", ", 
          conf_needs), ".\n")
      return(conf_ids)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. ├─utils::capture.output(optimizer$optimize(instance)) at test_OptimizerIrace.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.           ├─mlr3misc::invoke(irace::irace, scenario = scenario, .opts = allow_partial_matching)
   13.           │ └─base::eval.parent(expr, n = 1L)
   14.           │   └─base::eval(expr, p)
   15.           │     └─base::eval(expr, p)
   16.           └─irace::irace(scenario = scenario)
   17.             └─irace:::irace_common(scenario, simple = TRUE)
   18.               └─irace:::irace_run(scenario = scenario)
   19.                 └─irace (local) irace_finish(iraceResults, scenario, reason = "Not enough budget to race more than the minimum configurations")
   20.                   └─irace::psRace(...)
   21.                     └─irace (local) get_confs_for_psrace(...)
  
  [ FAIL 1 | WARN 0 | SKIP 50 | PASS 732 ]
  Error: Test failures
  Execution halted