Running 'testthat.R' [95s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rptR)
  > 
  > test_check("rptR")
  Bootstrap Progress:
  Bootstrap Progress:
  Permutation Progress for Population :
  Bootstrap Progress:
  Permutation Progress for Container:
  Bootstrap Progress:
  Permutation Progress for Population:
  Bootstrap Progress:
  Permutation Progress for Population:
  Bootstrap Progress:
  Permutation Progress for Population:
  Bootstrap Progress:
  Permutation Progress for Container:
  Permutation Progress for Population:
  Bootstrap Progress:
  Permutation Progress for Container:
  Permutation Progress for Population:
  Saving _problems/test-rptBinary-183.R
  Bootstrap Progress:
  Permutation Progress for Population :
  Bootstrap Progress:
  Permutation Progress for Container :
  Permutation Progress for Population :
  Bootstrap Progress:
  Permutation Progress for Container :
  Permutation Progress for Population :
  Bootstrap Progress:
  Permutation Progress for Container:
  Bootstrap Progress:
  Permutation Progress for Container:
  Permutation Progress for Population:
  Bootstrap Progress:
  Permutation Progress for Container:
  Bootstrap Progress:
  Permutation Progress for Container:
  Permutation Progress for Habitat:
  Bootstrap Progress:
  Permutation Progress for Population:
  Bootstrap Progress:
  Permutation Progress for Container:
  Permutation Progress for Population:
  Bootstrap Progress:
  Permutation Progress for Population :
  Bootstrap Progress:
  Permutation Progress for Container:
  Bootstrap Progress:
  Permutation Progress for Population:
  Bootstrap Progress:
  Permutation Progress for Population:
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 221 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-rptBinary.R:182:1'): (code run outside of `test_that()`) ───────
  <Rcpp::exception/C++Error/error/condition>
  Error: Downdated VtV is not positive definite
  Backtrace:
      ▆
   1. └─rptR::rptBinary(...) at test-rptBinary.R:182:1
   2.   └─rptR:::LRT_nongaussian(formula, data, grname, mod, link, family)
   3.     ├─stats::logLik(mod_fun(formula = formula_red, data = data, family = family_fun(link = link)))
   4.     └─lme4 (local) mod_fun(formula = formula_red, data = data, family = family_fun(link = link))
   5.       └─lme4::optimizeGlmer(...)
   6.         └─lme4:::optwrap(...)
   7.           └─lme4:::deriv12(fn, opt$par, fx = opt$value)
   8.             └─lme4 (local) fun(xsa, ...)
   9.               └─lme4 (local) pwrssUpdate(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 221 ]
  Error:
  ! Test failures.
  Execution halted