Running ‘testthat.R’ [8s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(EpiEstim)
  > 
  > test_check("EpiEstim")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-estimate_R.R:7:3): Example 1 matches saved output ───────────────
  Error in `FUN(X[[i]], ...)`: only defined on a data frame with all numeric-alike variables
  Backtrace:
      █
   1. └─EpiEstim::estimate_R(...) test-estimate_R.R:7:2
   2.   └─EpiEstim::make_config(incid = incid, method = method, config = config)
   3.     └─EpiEstim:::process_I(incid)
   4.       └─base::Summary.data.frame(...)
   5.         └─base::lapply(...)
   6.           └─base:::FUN(X[[i]], ...)
  ── Error (test-estimate_R.R:23:3): Example 2 matches saved output ──────────────
  Error in `data.frame(local = I_tmp, imported = rep(0, length(I_tmp)))`: arguments imply differing number of rows: 27, 4
  Backtrace:
      █
   1. └─EpiEstim::estimate_R(...) test-estimate_R.R:23:2
   2.   └─EpiEstim::make_config(incid = incid, method = method, config = config)
   3.     └─EpiEstim:::process_I(incid)
   4.       └─base::data.frame(local = I_tmp, imported = rep(0, length(I_tmp)))
  ── Error (test-estimate_R.R:35:3): Example 3 matches saved output ──────────────
  Error in `FUN(X[[i]], ...)`: only defined on a data frame with all numeric-alike variables
  Backtrace:
      █
   1. └─EpiEstim::estimate_R(...) test-estimate_R.R:35:2
   2.   └─EpiEstim::make_config(incid = incid, method = method, config = config)
   3.     └─EpiEstim:::process_I(incid)
   4.       └─base::Summary.data.frame(...)
   5.         └─base::lapply(...)
   6.           └─base:::FUN(X[[i]], ...)
  ── Error (test-estimate_R.R:47:3): Example 4 matches saved output ──────────────
  Error in `FUN(X[[i]], ...)`: only defined on a data frame with all numeric-alike variables
  Backtrace:
      █
   1. └─EpiEstim::estimate_R(...) test-estimate_R.R:47:2
   2.   └─EpiEstim::make_config(incid = incid, method = method, config = config)
   3.     └─EpiEstim:::process_I(incid)
   4.       └─base::Summary.data.frame(...)
   5.         └─base::lapply(...)
   6.           └─base:::FUN(X[[i]], ...)
  ── Error (test-plot.R:5:1): (code run outside of `test_that()`) ────────────────
  Error in `FUN(X[[i]], ...)`: only defined on a data frame with all numeric-alike variables
  Backtrace:
      █
   1. └─EpiEstim::estimate_R(...) test-plot.R:5:0
   2.   └─EpiEstim::make_config(incid = incid, method = method, config = config)
   3.     └─EpiEstim:::process_I(incid)
   4.       └─base::Summary.data.frame(...)
   5.         └─base::lapply(...)
   6.           └─base:::FUN(X[[i]], ...)
  ── Error (test-stample_posterior_R.R:7:1): (code run outside of `test_that()`) ──
  Error in `FUN(X[[i]], ...)`: only defined on a data frame with all numeric-alike variables
  Backtrace:
      █
   1. └─EpiEstim::estimate_R(...) test-stample_posterior_R.R:7:0
   2.   └─EpiEstim::make_config(incid = incid, method = method, config = config)
   3.     └─EpiEstim:::process_I(incid)
   4.       └─base::Summary.data.frame(...)
   5.         └─base::lapply(...)
   6.           └─base:::FUN(X[[i]], ...)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted