Running ‘testthat.R’ [222s/309s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(RESI)
  > 
  > test_check("RESI")
  Loading required package: carData
  Loading required namespace: pscl
  Loading required namespace: gee
  Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27
  running glm to get initial regression estimate
        (Intercept)    diagnosesevere      drugstandard              time 
        -0.08759224       -1.31391092        0.05960381        1.49985707 
  drugstandard:time 
        -1.01744498 
  Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27
  running glm to get initial regression estimate
  (Intercept) 
    0.0902573 
  Loading required namespace: geepack
  Loading required namespace: lme4
  boundary (singular) fit: see help('isSingular')
  Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27
  running glm to get initial regression estimate
        (Intercept)    diagnosesevere      drugstandard              time 
        -0.08759224       -1.31391092        0.05960381        1.49985707 
  drugstandard:time 
        -1.01744498 
  Updating model fit failed. Try running with providing data argument
  Updating model fit failed. Try running with providing data argument
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 78 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-resi.R:226:3'): resi produces the correct estimates ────────────
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-resi.R:226:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(...)
    5. ├─base::suppressWarnings(...)
    6. │ └─base::withCallingHandlers(...)
    7. ├─RESI::resi(mod.lmerMod, nboot = 10)
    8. └─RESI:::resi.lmerMod(mod.lmerMod, nboot = 10)
    9.   ├─RESI::resi_pe(...)
   10.   └─RESI:::resi_pe.lmerMod(...)
   11.     ├─base::diag(vcovfunc2(model.full))
   12.     └─RESI (local) vcovfunc2(model.full)
   13.       ├─base::do.call(vcovfunc, vcov.args)
   14.       ├─clubSandwich (local) `<fn>`(obj = `<lmerMod>`, type = "CR3")
   15.       └─clubSandwich:::vcovCR.lmerMod(obj = `<lmerMod>`, type = "CR3")
   16.         └─clubSandwich:::vcov_CR(...)
   17.           ├─clubSandwich:::weightMatrix(obj, cluster)
   18.           └─clubSandwich:::weightMatrix.lmerMod(obj, cluster)
   19.             ├─clubSandwich:::targetVariance(obj, cluster)
   20.             └─clubSandwich:::targetVariance.lmerMod(obj, cluster)
   21.               └─clubSandwich:::matrix_list(...)
  ── Error ('test-resi.R:358:3'): tibbles work ───────────────────────────────────
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-resi.R:358:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(...)
    5. ├─base::suppressWarnings(resi(mod.lmerMod.tib, nboot = 10))
    6. │ └─base::withCallingHandlers(...)
    7. ├─RESI::resi(mod.lmerMod.tib, nboot = 10)
    8. └─RESI:::resi.lmerMod(mod.lmerMod.tib, nboot = 10)
    9.   ├─RESI::resi_pe(...)
   10.   └─RESI:::resi_pe.lmerMod(...)
   11.     ├─base::diag(vcovfunc2(model.full))
   12.     └─RESI (local) vcovfunc2(model.full)
   13.       ├─base::do.call(vcovfunc, vcov.args)
   14.       ├─clubSandwich (local) `<fn>`(obj = `<lmerMod>`, type = "CR3")
   15.       └─clubSandwich:::vcovCR.lmerMod(obj = `<lmerMod>`, type = "CR3")
   16.         └─clubSandwich:::vcov_CR(...)
   17.           ├─clubSandwich:::weightMatrix(obj, cluster)
   18.           └─clubSandwich:::weightMatrix.lmerMod(obj, cluster)
   19.             ├─clubSandwich:::targetVariance(obj, cluster)
   20.             └─clubSandwich:::targetVariance.lmerMod(obj, cluster)
   21.               └─clubSandwich:::matrix_list(...)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 78 ]
  Error: Test failures
  Execution halted