Running ‘testthat.R’ [43s/43s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(attrib)
  attrib 2021.1.2 https://folkehelseinstituttet.github.io/attrib
  > 
  > test_check("attrib")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%Saving _problems/test_fake-35.R
  Saving _problems/test_fake-137.R
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 4 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_fake.R:27:5'): Model fit ───────────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Downdated VtV is not positive definite
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test_fake.R:27:5
    2. │ └─base::withCallingHandlers(...)
    3. └─attrib::fit_attrib(...)
    4.   └─lme4::glmer(stats::as.formula(formula), family = "poisson", data = data)
    5.     └─lme4::optimizeGlmer(...)
    6.       └─lme4:::optwrap(...)
    7.         ├─base::withCallingHandlers(...)
    8.         ├─base::do.call(optfun, arglist)
    9.         └─lme4 (local) `<fn>`(...)
   10.           ├─nM$newf(fn(nM$xeval()))
   11.           │ └─base::stopifnot(length(value <- as.numeric(value)) == 1L)
   12.           └─lme4 (local) fn(nM$xeval())
   13.             └─lme4 (local) pwrssUpdate(...)
  ── Error ('test_fake.R:135:3'): simmulations ───────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: Downdated VtV is not positive definite
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test_fake.R:135:3
    2. │ └─base::withCallingHandlers(...)
    3. └─attrib::fit_attrib(...)
    4.   └─lme4::glmer(stats::as.formula(formula), family = "poisson", data = data)
    5.     └─lme4::optimizeGlmer(...)
    6.       └─lme4:::optwrap(...)
    7.         ├─base::withCallingHandlers(...)
    8.         ├─base::do.call(optfun, arglist)
    9.         └─lme4 (local) `<fn>`(...)
   10.           ├─nM$newf(fn(nM$xeval()))
   11.           │ └─base::stopifnot(length(value <- as.numeric(value)) == 1L)
   12.           └─lme4 (local) fn(nM$xeval())
   13.             └─lme4 (local) pwrssUpdate(...)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 4 ]
  Error:
  ! Test failures.
  Execution halted