R Under development (unstable) (2023-09-07 r85102 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > 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