Running ‘testthat.R’ [9s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  Loading required namespace: cli
  > library(trendeval)
  > 
  > test_check("trendeval")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-evaluate_aic.R:6:5'): evaluate_aic ─────────────────────────────
  Error in `model$fit(data)`: attempt to apply non-function
  Backtrace:
      ▆
   1. └─trendeval::evaluate_aic(model_lm, dat) at test-evaluate_aic.R:6:4
  ── Error ('test-evaluate_models.R:13:3'): evaluate_models returns with expected structure ──
  <vctrs_error_subscript_oob/vctrs_error_subscript/rlang_error/error/condition>
  Error in `tidyr::pivot_wider(result, names_from = "metric", values_from = "score")`: Can't subset columns that don't exist.
  ✖ Column `metric` doesn't exist.
  Backtrace:
       ▆
    1. ├─trendeval::evaluate_models(...) at test-evaluate_models.R:13:2
    2. │ ├─tidyr::pivot_wider(result, names_from = "metric", values_from = "score")
    3. │ └─tidyr:::pivot_wider.data.frame(result, names_from = "metric", values_from = "score")
    4. │   └─tidyr::build_wider_spec(...)
    5. │     └─tidyselect::eval_select(...)
    6. │       └─tidyselect:::eval_select_impl(...)
    7. │         ├─tidyselect:::with_subscript_errors(...)
    8. │         │ └─rlang::try_fetch(...)
    9. │         │   └─base::withCallingHandlers(...)
   10. │         └─tidyselect:::vars_select_eval(...)
   11. │           └─tidyselect:::as_indices_sel_impl(...)
   12. │             └─tidyselect:::as_indices_impl(...)
   13. │               └─tidyselect:::chr_as_locations(x, vars, call = call, arg = arg)
   14. │                 └─vctrs::vec_as_location(...)
   15. └─vctrs (local) `<fn>`()
   16.   └─vctrs:::stop_subscript_oob(...)
   17.     └─vctrs:::stop_subscript(...)
   18.       └─rlang::abort(...)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted