Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(mice)
  
  Attaching package: 'mice'
  
  The following object is masked from 'package:stats':
  
      filter
  
  The following objects are masked from 'package:base':
  
      cbind, rbind
  
  > 
  > test_check("mice")
  [ FAIL 12 | WARN 0 | SKIP 0 | PASS 329 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-D1.R:17:1): (code run outside of `test_that()`) ─────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mitml'
  Backtrace:
      █
   1. ├─mice::D1(fit1, fit0) test-D1.R:17:0
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-D3.R:15:1): (code run outside of `test_that()`) ─────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mitml'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-D3.R:15:0
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-anova.R:9:3): anova.mira() produces silent D1 and D3 ────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mitml'
  Backtrace:
       █
    1. ├─testthat::expect_silent(z1 <- anova(m2, m1, m0)) test-anova.R:9:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─stats::anova(m2, m1, m0)
   10. ├─mice:::anova.mira(m2, m1, m0)
   11. │ ├─base::do.call(method, args = args)
   12. │ └─mice::D1(fit1 = modlist[[j]], fit0 = modlist[[j + 1L]], dfcom = as.numeric(unlist(dfcom[j])))
   13. └─base::loadNamespace(x)
   14.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15.     └─base:::withOneRestart(expr, restarts[[1L]])
   16.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-anova.R:14:3): anova.mira() produces silent with D2 ─────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mitml'
  Backtrace:
       █
    1. ├─testthat::expect_silent(z2a <- anova(m2, m1, m0, method = "D2")) test-anova.R:14:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─stats::anova(m2, m1, m0, method = "D2")
   10. ├─mice:::anova.mira(m2, m1, m0, method = "D2")
   11. │ ├─base::do.call(method, args = args)
   12. │ └─mice::D2(fit1 = modlist[[j]], fit0 = modlist[[j + 1L]], use = use)
   13. └─base::loadNamespace(x)
   14.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15.     └─base:::withOneRestart(expr, restarts[[1L]])
   16.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-anova.R:34:3): runs tests for the Cox model ─────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mitml'
  Backtrace:
       █
    1. ├─testthat::expect_silent(D1(m2, m1)) test-anova.R:34:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─mice::D1(m2, m1)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base:::withOneRestart(expr, restarts[[1L]])
   13.       └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test-mice.impute.2l.bin.R:18:3): mice::mice.impute.2l.bin() accepts factor outcome ──
  `... <- NULL` produced warnings.
  ── Failure (test-mice.impute.2l.bin.R:32:3): mice::mice.impute.2l.bin() accepts 0/1 outcome ──
  `... <- NULL` produced warnings.
  ── Failure (test-mice.impute.2l.lmer.R:8:3): mice::mice.impute.2l.lmer() runs empty model ──
  `... <- NULL` produced warnings.
  ── Failure (test-mice.impute.2l.lmer.R:18:3): 2l.lmer() runs random intercept, one predictor ──
  `... <- NULL` produced warnings.
  ── Error (test-mice.impute.jomoImpute.R:7:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mitml'
  Backtrace:
      █
   1. ├─mice::mice.impute.jomoImpute(data = data, type = type, format = "native") test-mice.impute.jomoImpute.R:7:0
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-mice.impute.panImpute.R:7:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mitml'
  Backtrace:
      █
   1. ├─mice::mice.impute.panImpute(data = data, type = type, format = "native") test-mice.impute.panImpute.R:7:0
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-pool.R:29:1): (code run outside of `test_that()`) ───────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'mitml'
  Backtrace:
      █
   1. ├─mice::D1(fit1, fit0) test-pool.R:29:0
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 12 | WARN 0 | SKIP 0 | PASS 329 ]
  Error: Test failures
  Execution halted