Running ‘testthat.R’ [69s/83s]
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:
  Saving _problems/test-rptBinary-30.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 171 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-rptBinary.R:30: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:30:1
    2.   └─rptR:::bootstrap_nongaussian(...)
    3.     ├─rptR:::with_warnings(...)
    4.     │ └─base::withCallingHandlers(expr, warning = wHandler)
    5.     ├─base::unname(...)
    6.     └─pbapply::pblapply(Ysim, bootstr, mod, formula, data, grname)
    7.       └─base::lapply(X, FUN, ...)
    8.         └─rptR (local) FUN(X[[i]], ...)
    9.           └─rptR (local) R_pe(formula, data, grname)
   10.             └─lme4::glmer(...)
   11.               └─lme4::optimizeGlmer(...)
   12.                 └─lme4:::optwrap(...)
   13.                   ├─base::withCallingHandlers(...)
   14.                   ├─base::do.call(optfun, arglist)
   15.                   └─lme4 (local) `<fn>`(...)
   16.                     ├─nM$newf(fn(nM$xeval()))
   17.                     │ └─base::stopifnot(length(value <- as.numeric(value)) == 1L)
   18.                     └─lme4 (local) fn(nM$xeval())
   19.                       └─lme4 (local) pwrssUpdate(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 171 ]
  Error:
  ! Test failures.
  Execution halted