Running 'testthat.R' [34s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(svrep)
  > 
  > test_check("svrep")
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 181 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-generalized-bootstrap.R:338:7'): `exact_vcov = TRUE` gives exact variance estimate for totals ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─stats::vcov(svytotal(pps_design_yg, x = ~Bush + Kerry)) at test-generalized-bootstrap.R:338:6
    2. ├─survey::svytotal(pps_design_yg, x = ~Bush + Kerry)
    3. ├─survey:::svytotal.pps(pps_design_yg, x = ~Bush + Kerry)
    4. │ └─survey:::ppsvar(x/design$prob, design)
    5. │   └─survey:::ygvar.matrix(...)
    6. │     └─survey:::htvar.matrix(xcheck, Dcheck)
    7. │       └─base::apply(...)
    8. │         └─survey (local) FUN(newX[, i], ...)
    9. │           └─base::apply(...)
   10. │             └─survey (local) FUN(newX[, i], ...)
   11. │               └─base::as.matrix(Matrix::crossprod(xicheck, Dcheck %*% xjcheck))
   12. └─base::.handleSimpleError(...)
   13.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-generalized-bootstrap.R:380:7'): Bootstrap estimate with many replicates close to expected value ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─stats::vcov(svytotal(x = ~Bush, design = pps_design_yg)) at test-generalized-bootstrap.R:380:6
    2. ├─survey::svytotal(x = ~Bush, design = pps_design_yg)
    3. ├─survey:::svytotal.pps(x = ~Bush, design = pps_design_yg)
    4. │ └─survey:::ppsvar(x/design$prob, design)
    5. │   └─survey:::ygvar.matrix(...)
    6. │     └─survey:::htvar.matrix(xcheck, Dcheck)
    7. │       └─base::apply(...)
    8. │         └─survey (local) FUN(newX[, i], ...)
    9. │           └─base::apply(...)
   10. │             └─survey (local) FUN(newX[, i], ...)
   11. │               └─base::as.matrix(Matrix::crossprod(xicheck, Dcheck %*% xjcheck))
   12. └─base::.handleSimpleError(...)
   13.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-quadratic-forms.R:169:3'): (code run outside of `test_that()`) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─stats::vcov(...) at test-quadratic-forms.R:169:2
    2. ├─survey::svytotal(...)
    3. ├─survey:::svytotal.pps(...)
    4. │ └─survey:::ppsvar(x/design$prob, design)
    5. │   └─survey:::htvar.matrix(...)
    6. │     └─base::apply(...)
    7. │       └─survey (local) FUN(newX[, i], ...)
    8. │         └─base::apply(...)
    9. │           └─survey (local) FUN(newX[, i], ...)
   10. │             └─base::as.matrix(Matrix::crossprod(xicheck, Dcheck %*% xjcheck))
   11. └─base::.handleSimpleError(...)
   12.   └─base (local) h(simpleError(msg, call))
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 181 ]
  Error: Test failures
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted