Running examples in 'WeightIt-Ex.R' failed
The error most likely occurred in:

> ### Name: method_super
> ### Title: Propensity Score Weighting Using SuperLearner
> ### Aliases: method_super
> 
> ### ** Examples
> ## Don't show: 
> if (all(sapply(c("SuperLearner", "MASS"), requireNamespace, quietly = TRUE))) force({ # examplesIf
+ ## End(Don't show)
+ library("cobalt")
+ data("lalonde", package = "cobalt")
+ 
+ #Balancing covariates between treatment groups (binary)
+ (W1 <- weightit(treat ~ age + educ + married +
+                   nodegree + re74, data = lalonde,
+                 method = "super", estimand = "ATT",
+                 SL.library = c("SL.glm", "SL.stepAIC",
+                                "SL.glm.interaction")))
+ summary(W1)
+ bal.tab(W1)
+ #Balancing covariates between treatment groups (binary)
+ # using balance SuperLearner to minimize the maximum
+ # KS statistic
+ (W4 <- weightit(treat ~ age + educ + married +
+                   nodegree + re74, data = lalonde,
+                 method = "super", estimand = "ATT",
+                 SL.library = c("SL.glm", "SL.stepAIC",
+                                "SL.lda"),
+                 SL.method = "method.balance",
+                 criterion = "ks.max"))
+ summary(W4)
+ bal.tab(W4, stats = c("m", "ks"))
+ ## Don't show: 
+ }) # examplesIf
 cobalt (Version 4.5.1, Build Date: 2023-04-27)
Loading required package: nnls
Error in `weightit()`:
! (from `SuperLearner::SuperLearner()`) `treat` must not be missing.
Backtrace:
     ▆
  1. ├─base::force(...)
  2. └─WeightIt::weightit(...)
  3.   ├─base::do.call("weightit.fit", A)
  4.   └─WeightIt::weightit.fit(...)
  5.     └─WeightIt:::weightit2super(...)
  6.       └─base::tryCatch(...)
  7.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  8.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9.             └─value[[3L]](cond)
 10.               └─WeightIt:::.err(...)
 11.                 └─chk::err(..., call = pkg_caller_call(start = 2))
 12.                   └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
Execution halted