Running ‘testthat.R’ [12s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(offsetreg)
  > 
  > test_check("offsetreg")
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 32 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-poisson.R:49:3'): poisson_reg_offset() works ───────────────────
  Error in `check_args.poisson_reg_offset(object, call = call)`: unused argument (call = call)
  Backtrace:
      ▆
   1. ├─generics::fit(...) at test-poisson.R:49:3
   2. └─parsnip::fit.model_spec(...)
   3.   └─parsnip:::form_form(object = object, control = control, env = eval_env)
   4.     └─parsnip::check_args(object, call = call)
  ── Error ('test-poisson.R:72:3'): poisson_reg_offset() works with recipes ──────
  Error in `check_args.poisson_reg_offset(object, call = call)`: unused argument (call = call)
  Backtrace:
       ▆
    1. ├─generics::fit(...) at test-poisson.R:72:3
    2. └─workflows:::fit.workflow(...)
    3.   └─workflows::.fit_model(workflow, control)
    4.     ├─generics::fit(action_model, workflow = workflow, control = control)
    5.     └─workflows:::fit.action_model(...)
    6.       └─workflows:::fit_from_xy(spec, mold, case_weights, control_parsnip)
    7.         ├─generics::fit_xy(...)
    8.         └─parsnip::fit_xy.model_spec(...)
    9.           └─parsnip:::xy_form(...)
   10.             └─parsnip:::form_form(...)
   11.               └─parsnip::check_args(object, call = call)
  ── Failure ('test-poisson.R:113:3'): finalize works ────────────────────────────
  Expected `fit(tune::finalize_workflow(wf, param_grid), us_deaths)` to run without any errors.
  i Actually got a <simpleError> with text:
    unused argument (call = call)
  ── Error ('test-xgboost.R:75:3'): boost_tree_offset() works ────────────────────
  Error in `check_args.boost_tree_offset(object, call = call)`: unused argument (call = call)
  Backtrace:
      ▆
   1. ├─generics::fit(...) at test-xgboost.R:75:3
   2. └─parsnip::fit.model_spec(...)
   3.   └─parsnip:::form_xy(...)
   4.     └─parsnip:::xy_xy(...)
   5.       └─parsnip::check_args(object, call = call)
  ── Error ('test-xgboost.R:97:3'): boost_tree_offset() works with recipes ───────
  Error in `check_args.boost_tree_offset(object, call = call)`: unused argument (call = call)
  Backtrace:
       ▆
    1. ├─generics::fit(...) at test-xgboost.R:97:3
    2. └─workflows:::fit.workflow(...)
    3.   └─workflows::.fit_model(workflow, control)
    4.     ├─generics::fit(action_model, workflow = workflow, control = control)
    5.     └─workflows:::fit.action_model(...)
    6.       └─workflows:::fit_from_xy(spec, mold, case_weights, control_parsnip)
    7.         ├─generics::fit_xy(...)
    8.         └─parsnip::fit_xy.model_spec(...)
    9.           └─parsnip:::xy_xy(...)
   10.             └─parsnip::check_args(object, call = call)
  ── Failure ('test-xgboost.R:137:3'): finalize works ────────────────────────────
  Expected `fit(tune::finalize_workflow(wf, param_grid), us_deaths)` to run without any errors.
  i Actually got a <simpleError> with text:
    unused argument (call = call)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 32 ]
  Error: Test failures
  Execution halted