Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [2s/4s]
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
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-poisson-reg.R:174:3): glm execution ───────────────────────────
  `... <- NULL` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-poisson-reg.R:174:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(...)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test-poisson-reg.R:199:3): glm prediction ────────────────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test-poisson-reg.R:199:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test-poisson-reg.R:219:3): newdata error trapping ────────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test-poisson-reg.R:219:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  
  [ FAIL 3 | WARN 0 | SKIP 4 | PASS 32 ]
  Error: Test failures
  Execution halted