Running ‘testthat.R’ [2s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bootImpute)
  > 
  > test_check("bootImpute")
                 Estimate Std. error 95% CI lower 95% CI upper            p
  (Intercept)  0.08137426 0.19129077   -0.2965280    0.4592765 6.711440e-01
  x            0.87123930 0.16282446    0.5497412    1.1927374 2.902025e-07
  x2          -0.01941161 0.06178557   -0.1422755    0.1034522 7.541639e-01
       Estimate Std. error 95% CI lower 95% CI upper   p
  [1,]        1          0          NaN          NaN NaN
                 Estimate Std. error 95% CI lower 95% CI upper            p
  (Intercept)  0.08137426 0.19129077   -0.2965280    0.4592765 6.711440e-01
  x            0.87123930 0.16282446    0.5497412    1.1927374 2.902025e-07
  x2          -0.01941161 0.06178557   -0.1422755    0.1034522 7.541639e-01
                 Estimate Std. error 95% CI lower 95% CI upper            p
  (Intercept)  0.08137426 0.19129077   -0.2965280    0.4592765 6.711440e-01
  x            0.87123930 0.16282446    0.5497412    1.1927374 2.902025e-07
  x2          -0.01941161 0.06178557   -0.1422755    0.1034522 7.541639e-01
                Estimate Std. error 95% CI lower 95% CI upper            p
  (Intercept) 0.05996528  0.1594198   -0.2547882    0.3747187 7.072883e-01
  x           0.86829902  0.1480554    0.5760088    1.1605892 2.330791e-08
                Estimate Std. error 95% CI lower 95% CI upper            p
  (Intercept) 0.05996528  0.1594198   -0.2547882    0.3747187 7.072883e-01
  x           0.86829902  0.1480554    0.5760088    1.1605892 2.330791e-08
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 9 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_bootImpute.r:147:3'): Testing bootMice works ─────────────────
  `{ ... }` did not produce any warnings.
  ── Error ('test_bootImpute.r:160:7'): Testing bootSmcfcs works ─────────────────
  Error: package or namespace load failed for 'mice' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
   there is no package called 'pan'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_bootImpute.r:158:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─base::library(mice) at test_bootImpute.r:160:7
    7.   └─base::tryCatch(...)
    8.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.         └─value[[3L]](cond)
  ── Error ('test_parallel.R:73:5'): Test bootImpute runs using multiple cores with mice ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])`: there is no package called 'pan'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_parallel.R:64:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─bootImpute::bootMice(...) at test_parallel.R:73:5
    7. │ └─bootImpute::bootImpute(...)
    8. │   └─bootImpute (local) impfun(obsdata, ...)
    9. └─base::loadNamespace(x)
   10.   ├─base::namespaceImportFrom(...)
   11.   │ └─base::asNamespace(ns)
   12.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   13.     ├─base::namespaceImport(...)
   14.     └─base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   15.       └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16.         └─base (local) withOneRestart(expr, restarts[[1L]])
   17.           └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_parallel.R:87:5'): Test bootImpute runs using multiple cores with mice with extra arguments ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])`: there is no package called 'pan'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_parallel.R:78:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─bootImpute::bootMice(...) at test_parallel.R:87:5
    7. │ └─bootImpute::bootImpute(...)
    8. │   └─bootImpute (local) impfun(obsdata, ...)
    9. └─base::loadNamespace(x)
   10.   ├─base::namespaceImportFrom(...)
   11.   │ └─base::asNamespace(ns)
   12.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   13.     ├─base::namespaceImport(...)
   14.     └─base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   15.       └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16.         └─base (local) withOneRestart(expr, restarts[[1L]])
   17.           └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 9 ]
  Error: Test failures
  Execution halted