Running ‘test-all.R’ [63s/79s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > #library("lava")
  > suppressPackageStartupMessages(library("testthat"))
  > test_check("lava")
  Loading required package: lava
  
  Attaching package: 'lava'
  
  The following object is masked from 'package:testthat':
  
      compare
  
    0:     13.081250: 0.200620  0.00000 0.337259
    1:     7.9524457: 0.272131 0.575626  1.15184
    2:     7.4635337: 0.132261 0.763214 0.929738
    3:     7.0359771: 0.0594089 0.733914 0.616824
    4:     6.9865362: 0.0794124 0.756603 0.558204
    5:     6.9757752: 0.0833126 0.759329 0.492413
    6:     6.9738107: 0.0806668 0.756413 0.513241
    7:     6.9737419: 0.0827969 0.758414 0.510545
    8:     6.9737365: 0.0806693 0.757663 0.508982
    9:     6.9737257: 0.0819960 0.757150 0.509933
   10:     6.9737242: 0.0817930 0.757623 0.509977
   11:     6.9737241: 0.0816735 0.757610 0.509971
   12:     6.9737241: 0.0816798 0.757610 0.509973
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-inference.R:38:5): Profile confidence limits ────────────────────
  Error in `uniroot(pp, interval = c(interval[1], tau0))`: f() values at end points not of opposite sign
  Backtrace:
      █
   1. ├─stats::confint(e, 3, profile = TRUE) test-inference.R:38:4
   2. └─lava:::confint.lvmfit(e, 3, profile = TRUE)
   3.   ├─base::rbind(...)
   4.   └─lava:::profci.lvmfit(...)
   5.     └─stats::uniroot(pp, interval = c(interval[1], tau0))
  ── Error (test-inference.R:220:5): zero-inflated binomial regression (zib) ─────
  Error in `PD(e0, intercept = c(1, 3), slope = c(2, 6))`: vcov argument needed
  Backtrace:
      █
   1. └─lava::PD(e0, intercept = c(1, 3), slope = c(2, 6)) test-inference.R:220:4
  ── Failure (test-inference.R:273:5): Prediction with missing data, random intercept ──
  mse(logLik(e), logLik(l)) < mytol is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test-inference.R:287:5): Prediction with missing data, random intercept ──
  mse(logLik(e0), logLik(l0)) < mytol is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error (test-sim.R:67:5): sim.default I ──────────────────────────────────────
  <subscriptOutOfBoundsError/error/condition>
  Error in ``[.default`(val2, , 1:2, drop = FALSE)`: subscript out of bounds
  Backtrace:
      █
   1. ├─testthat::expect_true(all(R - val2[, 1:2] == 0)) test-sim.R:67:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─val2[, 1:2]
   5. ├─lava:::`[.sim`(val2, , 1:2)
   6. └─base::NextMethod("[", drop = drop)
  
  [ FAIL 5 | WARN 4 | SKIP 0 | PASS 244 ]
  Error: Test failures
  Execution halted