Running ‘testthat.R’ [52s/62s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rptR)
  > 
  > test_check("rptR")
  Saving _problems/test-rpt-23.R
  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:
  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 229 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-rpt.R:22:9'): wrapper function rpt works for all distributions without perm or boot and defaults ──
  `rpt(...)` threw an error.
  Message: Downdated VtV is not positive definite
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-rpt.R:22:9
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─rptR::rpt(...)
    7.   └─rptR::rptPoisson(...)
    8.     └─lme4::glmer(...)
    9.       └─lme4::optimizeGlmer(...)
   10.         └─lme4:::optwrap(...)
   11.           └─lme4:::deriv12(fn, opt$par, fx = opt$value)
   12.             └─lme4 (local) fun(spos(x, xsub, j), ...)
   13.               └─lme4 (local) pwrssUpdate(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 229 ]
  Error:
  ! Test failures.
  Execution halted