Running examples in ‘cobalt-Ex.R’ failed
The error most likely occurred in:

> ### Name: bal.tab.Match
> ### Title: Balance Statistics for 'Matching', 'optmatch', 'ebal', and
> ###   'designmatch' Objects
> ### Aliases: bal.tab.Match bal.tab.optmatch bal.tab.ebalance
> ###   bal.tab.designmatch
> ### Keywords: tables
> 
> ### ** Examples
> ## Don't show: 
> if (requireNamespace("Matching", quietly = TRUE)) {
+ ## End(Don't show)
+ ########## Matching ##########
+ 
+ library(Matching); data("lalonde", package = "cobalt")
+ 
+ p.score <- glm(treat ~ age + educ + race + 
+             married + nodegree + re74 + re75, 
+             data = lalonde, family = "binomial")$fitted.values
+ Match.out <- Match(Tr = lalonde$treat, X = p.score)
+ 
+ ## Using formula and data
+ bal.tab(Match.out, treat ~ age + educ + race + 
+         married + nodegree + re74 + re75, data = lalonde)
+ ## Don't show: 
+ }; if (requireNamespace("optmatch", quietly = TRUE)) {
Loading required package: MASS
## 
##  Matching (Version 4.9-11, Build Date: 2021-10-18)
##  See http://sekhon.berkeley.edu/matching for additional documentation.
##  Please cite software as:
##   Jasjeet S. Sekhon. 2011. ``Multivariate and Propensity Score Matching
##   Software with Automated Balance Optimization: The Matching package for R.''
##   Journal of Statistical Software, 42(7): 1-52. 
##

Balance Measures
               Type Diff.Adj
age         Contin.   0.2106
educ        Contin.   0.0201
race_black   Binary   0.0054
race_hispan  Binary  -0.0051
race_white   Binary  -0.0003
married      Binary   0.0661
nodegree     Binary  -0.0079
re74        Contin.  -0.0772
re75        Contin.  -0.0127

Sample sizes
                     Control Treated
All                   429.       185
Matched (ESS)          49.17     185
Matched (Unweighted)  136.       185
Unmatched             293.         0
+ ## End(Don't show)
+ ########## optmatch ##########
+ 
+ library("optmatch"); data("lalonde", package = "cobalt")
+ 
+ lalonde$prop.score <- glm(treat ~ age + educ + race + 
+             married + nodegree + re74 + re75, 
+             data = lalonde, family = binomial)$fitted.values
+ pm <- pairmatch(treat ~ prop.score, data = lalonde)
+ 
+ ## Using formula and data
+ bal.tab(pm, treat ~ age + educ + race + 
+         married + nodegree + re74 + re75, data = lalonde,
+         distance = "prop.score")
+ ## Don't show: 
+ }; if (requireNamespace("ebal", quietly = TRUE)) {
Loading required package: survival
The optmatch package has an academic license. Enter relaxinfo() for more information.
Error in fullmatch.matrix(x = x, min.controls = controls, max.controls = controls,  : 
  Some elements of the distance matrix are not found in the data argument.
Calls: pairmatch ... pairmatch -> pairmatch.matrix -> fullmatch -> fullmatch.matrix
Execution halted