Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ao)
  Loading required package: optimizeR
  Thanks for using {optimizeR} 0.3.0.
  > 
  > test_check("ao")
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 14 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-ao.R:39'): ao works ────────────────────────────────────────────
  Error in `structure(list(objective), names = optimizer[["argument_names"]][["objective"]])`: argument "objective" is missing, with no default
  Backtrace:
      ▆
   1. └─ao::ao(...) at test-ao.R:39:2
   2.   └─optimizeR::apply_optimizer(...)
   3.     ├─base::do.call(...)
   4.     └─base::structure(list(objective), names = optimizer[["argument_names"]][["objective"]])
  ── Error ('test-ao.R:53'): ao with additional parameters works ─────────────────
  Error in `structure(list(objective), names = optimizer[["argument_names"]][["objective"]])`: argument "objective" is missing, with no default
  Backtrace:
      ▆
   1. └─ao::ao(...) at test-ao.R:53:2
   2.   └─optimizeR::apply_optimizer(...)
   3.     ├─base::do.call(...)
   4.     └─base::structure(list(objective), names = optimizer[["argument_names"]][["objective"]])
  ── Error ('test-ao.R:66'): NULL elements in partition do not break code ────────
  Error in `structure(list(objective), names = optimizer[["argument_names"]][["objective"]])`: argument "objective" is missing, with no default
  Backtrace:
      ▆
   1. └─ao::ao(...) at test-ao.R:66:2
   2.   └─optimizeR::apply_optimizer(...)
   3.     ├─base::do.call(...)
   4.     └─base::structure(list(objective), names = optimizer[["argument_names"]][["objective"]])
  ── Error ('test-ao.R:76'): printing progress works ─────────────────────────────
  Error in `structure(list(objective), names = optimizer[["argument_names"]][["objective"]])`: argument "objective" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_output(...) at test-ao.R:76:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─ao::ao(...)
   11.   └─optimizeR::apply_optimizer(...)
   12.     ├─base::do.call(...)
   13.     └─base::structure(list(objective), names = optimizer[["argument_names"]][["objective"]])
  ── Error ('test-ao.R:87'): plotting progress works ─────────────────────────────
  Error in `structure(list(objective), names = optimizer[["argument_names"]][["objective"]])`: argument "objective" is missing, with no default
  Backtrace:
      ▆
   1. └─ao::ao(...) at test-ao.R:87:2
   2.   └─optimizeR::apply_optimizer(...)
   3.     ├─base::do.call(...)
   4.     └─base::structure(list(objective), names = optimizer[["argument_names"]][["objective"]])
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 14 ]
  Error: Test failures
  Execution halted