Running ‘testthat.R’ [2s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(corrcoverage)
  > 
  > test_check("corrcoverage")
  ── 1. Error: corrected_cov function returns a probability (@test_corrcov.R#32)  
  class(int.ERR) == "matrix" are not all TRUE
  Backtrace:
   1. corrcoverage::corrected_cov(...)
   2. base::mapply(...)
   4. base::stopifnot(class(int.ERR) == "matrix")
  
  ── 2. Error: corrcov function returns a probability (@test_corrcov.R#37)  ──────
  class(int.ERR) == "matrix" are not all TRUE
  Backtrace:
   1. corrcoverage::corrcov(...)
   2. corrcoverage::corrected_cov(...)
   3. base::mapply(...)
   5. base::stopifnot(class(int.ERR) == "matrix")
  
  ── 3. Error: corrcov_bhat function returns a probability (@test_corrcov.R#44)  ─
  class(int.ERR) == "matrix" are not all TRUE
  Backtrace:
   1. corrcoverage::corrcov_bhat(...)
   2. corrcoverage::corrected_cov(...)
   3. base::mapply(...)
   5. base::stopifnot(class(int.ERR) == "matrix")
  
  ── 4. Error: corrcov_nvar function returns a probability (@test_corrcov.R#50)  ─
  class(int.ERR) == "matrix" are not all TRUE
  Backtrace:
   1. corrcoverage::corrcov_nvar(...)
   2. base::mapply(...)
   4. base::stopifnot(class(int.ERR) == "matrix")
  
  ── 5. Error: corrcov_nvar_bhat function returns a probability (@test_corrcov.R#5
  class(int.ERR) == "matrix" are not all TRUE
  Backtrace:
   1. corrcoverage::corrcov_nvar_bhat(...)
   2. base::mapply(...)
   4. base::stopifnot(class(int.ERR) == "matrix")
  
  ── 6. Error: corrcov_CI returns an appropriate confidence interval (@test_corrco
  class(int.ERR) == "matrix" are not all TRUE
  Backtrace:
    1. corrcoverage::corrcov_CI(...)
    2. base::replicate(...)
    3. base::sapply(...)
    4. base::lapply(X = X, FUN = FUN, ...)
    5. corrcoverage:::FUN(X[[i]], ...)
    6. corrcoverage::corrcov(z, f, N0, N1, Sigma, thr, W, nrep, pp0min)
    7. corrcoverage::corrected_cov(...)
    8. base::mapply(...)
   10. base::stopifnot(class(int.ERR) == "matrix")
  
  ── 7. Error: corrcov_CI_bhat returns an appropriate confidence interval (@test_c
  class(int.ERR) == "matrix" are not all TRUE
  Backtrace:
    1. corrcoverage::corrcov_CI_bhat(...)
    2. base::replicate(...)
    3. base::sapply(...)
    4. base::lapply(X = X, FUN = FUN, ...)
    5. corrcoverage:::FUN(X[[i]], ...)
    6. corrcoverage::corrcov_bhat(...)
    7. corrcoverage::corrected_cov(...)
    8. base::mapply(...)
   10. base::stopifnot(class(int.ERR) == "matrix")
  
  ── 8. Error: corrected_cs reports appropriate list (@test_corrcov.R#89)  ───────
  class(int.ERR) == "matrix" are not all TRUE
  Backtrace:
   1. corrcoverage::corrected_cs(...)
   2. base::mapply(...)
   4. base::stopifnot(class(int.ERR) == "matrix")
  
  ── 9. Error: corrected_cs_bhat reports appropriate list (@test_corrcov.R#100)  ─
  class(int.ERR) == "matrix" are not all TRUE
  Backtrace:
   1. corrcoverage::corrected_cs_bhat(...)
   2. base::mapply(...)
   4. base::stopifnot(class(int.ERR) == "matrix")
  
  ── 10. Error: ppfunc.mat returns probabilities (@test_extras.R#78)  ────────────
  class(zstar) == "matrix" are not all TRUE
  Backtrace:
   1. corrcoverage::ppfunc.mat(zstar, V = V)
   2. base::stopifnot(class(zstar) == "matrix")
  
  ── 11. Error: .zj_abf works (@test_extras.R#121)  ──────────────────────────────
  class(int.ERR) == "matrix" are not all TRUE
  Backtrace:
   1. corrcoverage:::.zj_abf(Zj = z, sigma, nrep, ERR, r)
   2. base::stopifnot(class(int.ERR) == "matrix")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 38 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 11 ]
  1. Error: corrected_cov function returns a probability (@test_corrcov.R#32) 
  2. Error: corrcov function returns a probability (@test_corrcov.R#37) 
  3. Error: corrcov_bhat function returns a probability (@test_corrcov.R#44) 
  4. Error: corrcov_nvar function returns a probability (@test_corrcov.R#50) 
  5. Error: corrcov_nvar_bhat function returns a probability (@test_corrcov.R#57) 
  6. Error: corrcov_CI returns an appropriate confidence interval (@test_corrcov.R#63) 
  7. Error: corrcov_CI_bhat returns an appropriate confidence interval (@test_corrcov.R#71) 
  8. Error: corrected_cs reports appropriate list (@test_corrcov.R#89) 
  9. Error: corrected_cs_bhat reports appropriate list (@test_corrcov.R#100) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted