Running ‘testthat.R’ [16s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(AIPW)
  > 
  > test_check("AIPW")
  Error in (function (Y, X, newX = NULL, family = gaussian(), SL.library,  : 
    All algorithms dropped from library
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 158 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-stratified_fit.R:19'): AIPW stratified_fit: SuperLeaner & k_split ──
  `aipw$stratified_fit()` did not produce any warnings.
  ── Failure ('test-stratified_fit.R:22'): AIPW stratified_fit: SuperLeaner & k_split ──
  any(sapply(aipw$obs_est[1:4], is.na)) is not FALSE
  
  `actual`:   TRUE 
  `expected`: FALSE
  ── Error ('test-stratified_fit.R:45'): AIPW stratified_fit: SuperLeaner & k_split ──
  Error in `SuperLearner::SuperLearner(Y = Y, X = X, SL.library = SL.library, 
      family = private$Y.type, env = private$sl.env, cvControl = CV)`: All algorithms dropped from library
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(aipw$stratified_fit()) at test-stratified_fit.R:45:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─aipw$stratified_fit()
    7.   └─private$.f_lapply(...)
    8.     └─future.apply::future_lapply(...)
    9.       └─future.apply:::future_xapply(...)
   10.         ├─future::value(fs)
   11.         └─future:::value.list(fs)
   12.           ├─future::resolve(...)
   13.           └─future:::resolve.list(...)
   14.             └─future (local) signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   15.               └─future:::signalConditions(...)
  ── Failure ('test-summary.R:158'): AIPW summary: continuous outcome ────────────
  `aipw$stratified_fit()$summary()` did not produce any warnings.
  ── Error ('test-tmle_support.R:12'): AIPW_tmle class: tmle ─────────────────────
  Error in `estimateQ(Y = stage1$Ystar, Z, A, W, Delta, Q = stage1$Q, Qbounds = stage1$Qbounds, 
      Qform, maptoYstar = maptoYstar, SL.library = Q.SL.library, 
      cvQinit = cvQinit, family = family, id = id, V = V, verbose = verbose, 
      discreteSL = Q.discreteSL)`: Super Learner failed when estimating Q. Exiting program
  
  Backtrace:
      ▆
   1. └─tmle::tmle(...) at test-tmle_support.R:12:2
   2.   ├─base::suppressWarnings(...)
   3.   │ └─base::withCallingHandlers(...)
   4.   └─tmle::estimateQ(...)
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 158 ]
  Error: Test failures
  Execution halted