Running ‘testthat.R’ [122s/180s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(BTYDplus)
  > 
  > test_check("BTYDplus")
  ── ERROR (test-bg-cnbd-k.R:38:3): BG/CNBD-k ────────────────────────────────────
  Error: argument "hardie" is missing, with no default
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-bg-cnbd-k.R:38:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─BTYD::bgnbd.PlotTrackingInc(...)
    5.   ├─BTYD::dc.CumulativeToIncremental(...)
    6.   └─BTYD::bgnbd.ExpectedCumulativeTransactions(...)
    7.     └─base::sapply(...)
    8.       └─base::lapply(X = X, FUN = FUN, ...)
    9.         └─BTYD:::FUN(X[[i]], ...)
   10.           └─BTYD::bgnbd.Expectation(params = params, t = t, hardie = hardie)
  
  ── Skip (test-mbg-cnbd-k.R:58:3): MBG/CNBD-k ───────────────────────────────────
  Reason: skip long-running test of bias correction
  
  set param_init: 1, 1, 1, 1 
  running in parallel on 2 cores
  chain: 2 step: 100 of 110 
  chain: 1 step: 100 of 110 
  running in parallel on 2 cores
  chain: 1 step: 100 of 110 
  chain: 2 step: 100 of 110 
  set param_init: 1, 1, 1, 1, 1, 1 
  running in parallel on 2 cores
  set param_init: 1, 1, 1, 1 
  chain: 1 step: 100 of 1500 
  chain: 1 step: 200 of 1500 
  chain: 1 step: 300 of 1500 
  chain: 1 step: 400 of 1500 
  chain: 1 step: 500 of 1500 
  chain: 1 step: 600 of 1500 
  chain: 1 step: 700 of 1500 
  chain: 1 step: 800 of 1500 
  chain: 1 step: 900 of 1500 
  chain: 1 step: 1000 of 1500 
  chain: 1 step: 1100 of 1500 
  chain: 1 step: 1200 of 1500 
  chain: 1 step: 1300 of 1500 
  chain: 1 step: 1400 of 1500 
  chain: 1 step: 1500 of 1500 
  ── ERROR (test-mcmc.R:98:3): MCMC Helpers ──────────────────────────────────────
  Error: argument "hardie" is missing, with no default
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-mcmc.R:98:2
   2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─BTYD::pnbd.PlotFrequencyInCalibration(...)
   5.   └─BTYD::pnbd.pmf(params, T, ii - 1, hardie)
   6.     └─BTYD::pnbd.pmf.General(...)
   7.       └─base::mapply(...)
  
  chain: 1 step: 100 of 120 
  chain: 2 step: 100 of 120 
  ── Skip (test-pareto-ggg-mcmc.R:29:3): Pareto/GGG MCMC ─────────────────────────
  Reason: skip long-running test of Pareto/GGG parameter recovery
  
  ── Skip (test-pareto-nbd-abe.R:4:3): Pareto/NBD (Abe) MCMC ─────────────────────
  Reason: On CRAN
  
  ── Skip (test-pareto-nbd-mcmc.R:48:3): Pareto/NBD MCMC ─────────────────────────
  Reason: On CRAN
  
  ── Skip (test-style.R:4:5): Package Style ──────────────────────────────────────
  Reason: On CRAN
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (3)
  ● skip long-running test of Pareto/GGG parameter recovery (1)
  ● skip long-running test of bias correction (1)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test-bg-cnbd-k.R:38:3): BG/CNBD-k
  ERROR (test-mcmc.R:98:3): MCMC Helpers
  
  [ FAIL 2 | WARN 0 | SKIP 5 | PASS 138 ]
  Error: Test failures
  Execution halted