Running ‘testthat.R’ [4s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cvmdisc)
  Loading required package: stats4
  Loading required package: CompQuadForm
  > 
  > test_check("cvmdisc")
  ── Warning (test_groupFit.R:9:5): Asymptotic ───────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:9:5): Asymptotic ───────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:9:5): Asymptotic ───────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:9:5): Asymptotic ───────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:9:5): Asymptotic ───────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:9:5): Asymptotic ───────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:18:3): Asymptotic ──────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:27:3): Asymptotic ──────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── ERROR (test_groupFit.R:36:5): Bootstrap ─────────────────────────────────────
  Error: non-finite finite-difference value [2]
  Backtrace:
      █
   1. └─cvmdisc::groupFit(...) test_groupFit.R:36:4
   2.   ├─base::matrix(...)
   3.   └─base::apply(...)
   4.     └─cvmdisc:::FUN(newX[, i], ...)
   5.       └─cvmdisc::distrFit(bootbreaks, y, distr, initials = hats)
   6.         └─stats4::mle(ll_norm, start = list(a = start[1], b = log(start[2])))
   7.           └─stats::optim(start, f, method = method, hessian = TRUE, ...)
  
  [1] "Parameter 'N' must be numeric."
  [1] "Paraneter 'N' must be a positive integer."
  ── Warning (test_groupFit.R:92:3): Other ───────────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:95:3): Other ───────────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:98:3): Other ───────────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:101:3): Other ──────────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:104:3): Other ──────────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:107:3): Other ──────────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:110:3): Other ──────────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ── Warning (test_groupFit.R:113:3): Other ──────────────────────────────────────
  Chi-squared approximation may be incorrect.
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  Warning (test_groupFit.R:9:5): Asymptotic
  Warning (test_groupFit.R:9:5): Asymptotic
  Warning (test_groupFit.R:9:5): Asymptotic
  Warning (test_groupFit.R:9:5): Asymptotic
  Warning (test_groupFit.R:9:5): Asymptotic
  Warning (test_groupFit.R:9:5): Asymptotic
  Warning (test_groupFit.R:18:3): Asymptotic
  Warning (test_groupFit.R:27:3): Asymptotic
  ERROR (test_groupFit.R:36:5): Bootstrap
  Warning (test_groupFit.R:92:3): Other
  Warning (test_groupFit.R:95:3): Other
  Warning (test_groupFit.R:98:3): Other
  Warning (test_groupFit.R:101:3): Other
  Warning (test_groupFit.R:104:3): Other
  Warning (test_groupFit.R:107:3): Other
  Warning (test_groupFit.R:110:3): Other
  Warning (test_groupFit.R:113:3): Other
  
  [ FAIL 1 | WARN 16 | SKIP 0 | PASS 32 ]
  Error: Test failures
  Execution halted