Running 'spelling.R' [0s]
  Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(poissonreg)
  Loading required package: parsnip
  > 
  > test_check("poissonreg")
  
  Attaching package: 'rlang'
  
  The following objects are masked from 'package:testthat':
  
      is_false, is_null, is_true
  
  
  Attaching package: 'tidyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  -- 1. Failure: glm execution (@test-poisson-reg.R#174)  ------------------------
  `... <- NULL` threw an error.
  Message: argument "default" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    7. parsnip::fit_xy.model_spec(...)
    8. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
    9. parsnip:::allow_sparse(model)
   10. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   11. rlang::env_get(mod_env, items)
  
  -- 2. Error: glm execution (@test-poisson-reg.R#193)  --------------------------
  object 'y' not found
  Backtrace:
   1. generics::fit(glm_spec, y ~ x, data = seniors, control = caught_ctrl)
   2. parsnip::fit.model_spec(glm_spec, y ~ x, data = seniors, control = caught_ctrl)
   3. parsnip:::form_form(object = object, control = control, env = eval_env)
   4. parsnip:::levels_from_formula(env$formula, env$data)
   6. rlang::eval_tidy(f[[2]], dat)
  
  -- 3. Error: glm prediction (@test-poisson-reg.R#207)  -------------------------
  argument "default" is missing, with no default
  Backtrace:
   1. generics::fit_xy(...)
   2. parsnip::fit_xy.model_spec(...)
   3. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
   4. parsnip:::allow_sparse(model)
   5. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   6. rlang::env_get(mod_env, items)
  
  -- 4. Error: newdata error trapping (@test-poisson-reg.R#227)  -----------------
  argument "default" is missing, with no default
  Backtrace:
   1. generics::fit_xy(...)
   2. parsnip::fit_xy.model_spec(...)
   3. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
   4. parsnip:::allow_sparse(model)
   5. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   6. rlang::env_get(mod_env, items)
  
  == testthat results  ===========================================================
  [ OK: 28 | SKIPPED: 10 | WARNINGS: 0 | FAILED: 4 ]
  1. Failure: glm execution (@test-poisson-reg.R#174) 
  2. Error: glm execution (@test-poisson-reg.R#193) 
  3. Error: glm prediction (@test-poisson-reg.R#207) 
  4. Error: newdata error trapping (@test-poisson-reg.R#227) 
  
  Error: testthat unit tests failed
  Execution halted