Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(drtmle)
  drtmle: TMLE with doubly robust inference
  Version: 1.1.0
  > 
  > test_check("drtmle")
  [ FAIL 18 | WARN 56 | SKIP 2 | PASS 350 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On Windows (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-confint.R:89:3): ci.adaptive_iptw works as expected ─────────────
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
       █
    1. └─drtmle::adaptive_iptw(...) test-confint.R:89:2
    2.   └─future.apply::future_lapply(...)
    3.     └─future.apply:::future_xapply(...)
    4.       ├─base::withCallingHandlers(...)
    5.       └─(function() {...
    6.         ├─future::value(fs)
    7.         └─future:::value.list(fs)
    8.           ├─future::resolve(...)
    9.           └─future:::resolve.list(...)
   10.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   11.               └─future:::signalConditions(...)
  ── Error (test-cvtmle.R:68:3): drtmle executes as expected with cvtmle and stratify = TRUE ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. ├─base::system.time(...) test-cvtmle.R:68:2
   2. └─drtmle::drtmle(...)
   3.   └─drtmle:::estimateG_loop(...)
   4.     └─base::lapply(...)
   5.       └─drtmle:::FUN(X[[i]], ...)
   6.         └─SuperLearner::SuperLearner(...)
   7.           └─method$computeCoef(...)
  ── Error (test-cvtmle.R:228:3): drtmle executes as expected with cv and stratify = FALSE ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-cvtmle.R:228:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-drtmle-averaging.R:65:3): drtmle executes as expected with stratify = TRUE ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-drtmle-averaging.R:65:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-drtmle-missingAY.R:79:3): drtmle executes as expected with stratify = TRUE ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-drtmle-missingAY.R:79:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-drtmle-missingAY.R:238:3): drtmle executes as expected with stratify = FALSE ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-drtmle-missingAY.R:238:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-drtmle-repeatsl.R:66:3): drtmle executes as expected with stratify = TRUE ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-drtmle-repeatsl.R:66:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-drtmle-repeatsl.R:239:3): drtmle executes as expected with stratify = FALSE ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-drtmle-repeatsl.R:239:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-drtmle-repeatsl.R:387:3): drtmle executes as expected with stratify = FALSE and multiple cvFolds ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-drtmle-repeatsl.R:387:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-drtmle.R:98:3): drtmle executes as expected with stratify = TRUE ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-drtmle.R:98:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-drtmle.R:275:3): drtmle executes as expected with stratify = FALSE ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-drtmle.R:275:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-edge.R:49:3): drtmle executes when glm and SL are specified ─────
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test-edge.R:49:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─drtmle::drtmle(...)
    7.   └─drtmle:::estimateG_loop(...)
    8.     └─base::lapply(...)
    9.       └─drtmle:::FUN(X[[i]], ...)
   10.         └─SuperLearner::SuperLearner(...)
   11.           └─method$computeCoef(...)
  ── Error (test-multileveltrt.R:51:3): drtmle executes as expected with multiple treatment levels ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-multileveltrt.R:51:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-multileveltrt.R:120:3): adaptive_iptw executes as expected with multiple treatment levels ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
       █
    1. └─drtmle::adaptive_iptw(...) test-multileveltrt.R:120:2
    2.   └─future.apply::future_lapply(...)
    3.     └─future.apply:::future_xapply(...)
    4.       ├─base::withCallingHandlers(...)
    5.       └─(function() {...
    6.         ├─future::value(fs)
    7.         └─future:::value.list(fs)
    8.           ├─future::resolve(...)
    9.           └─future:::resolve.list(...)
   10.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   11.               └─future:::signalConditions(...)
  ── Error (test-partial-cv.R:16:3): Same point estimates, different variance estimates, single treatment ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-partial-cv.R:16:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-partial-cv.R:137:3): Same point estimates, different variance estimates, multi treatment ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-partial-cv.R:137:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-partial-cv.R:323:3): Same point estimates, different variance estimates, missing data treatment ──
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. └─drtmle::drtmle(...) test-partial-cv.R:323:2
   2.   └─drtmle:::estimateG_loop(...)
   3.     └─base::lapply(...)
   4.       └─drtmle:::FUN(X[[i]], ...)
   5.         └─SuperLearner::SuperLearner(...)
   6.           └─method$computeCoef(...)
  ── Error (test-tests.R:87:3): wald_test.adaptive_iptw works as expected ────────
  Error in `if (r$status < 1 || r$status > 4) {
      warning(r$message)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
       █
    1. └─drtmle::adaptive_iptw(...) test-tests.R:87:2
    2.   └─future.apply::future_lapply(...)
    3.     └─future.apply:::future_xapply(...)
    4.       ├─base::withCallingHandlers(...)
    5.       └─(function() {...
    6.         ├─future::value(fs)
    7.         └─future:::value.list(fs)
    8.           ├─future::resolve(...)
    9.           └─future:::resolve.list(...)
   10.             └─future:::signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   11.               └─future:::signalConditions(...)
  
  [ FAIL 18 | WARN 56 | SKIP 2 | PASS 350 ]
  Error: Test failures
  Execution halted