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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: OMEGA
> ### Title: McDonald's omega
> ### Aliases: OMEGA
> 
> ### ** Examples
> 
> 
> ## Use with an output from the SL function, with type EFAtools
> efa_mod <- EFA(test_models$baseline$cormat, N = 500, n_factors = 3,
+                type = "EFAtools", method = "PAF", rotation = "promax")
> sl_mod <- SL(efa_mod, type = "EFAtools", method = "PAF")
> 
> # Two examples how to specify the indicator-to-factor correspondences:
> 
> # Based on a specific salience threshold for the loadings (here: .20):
> factor_corres_1 <- sl_mod$sl[, c("F1", "F2", "F3")] >= .2
> 
> # Or more flexibly (could also be TRUE and FALSE instead of 0 and 1):
> factor_corres_2 <- matrix(c(rep(0, 12), rep(1, 6), rep(0, 6), rep(1, 6),
+                          rep(0, 6), rep(1, 6), rep(0, 12)), ncol = 3,
+                          byrow = FALSE)
> 
> OMEGA(sl_mod, type = "EFAtools", factor_corres = factor_corres_1)
Omega total, omega hierarchical, omega subscale, H index, explained common variance (ECV), and percent of uncontaminated correlations (PUC) for the general factor (top row) and omegas and H index for the group factors:

     tot  hier   sub     H   ECV   PUC
g  0.883 0.740 0.125 0.842 0.659 0.706
F1 0.769 0.500 0.269 0.463            
F2 0.763 0.494 0.270 0.472            
F3 0.744 0.519 0.225 0.408            
> 
> ## Use with an output from the psych::schmid function, with type psych for
> ## OMEGA
> schmid_mod <- psych::schmid(test_models$baseline$cormat, nfactors = 3,
+                             n.obs = 500, fm = "pa", rotate = "Promax")
> # Find correlation matrix from phi and pattern matrix from psych::schmid output
> OMEGA(schmid_mod, type = "psych")
Error in xtfrm.data.frame(list(`1` = 0.0378603062522911, `2` = 0.0133470820794105,  : 
  cannot xtfrm data frames
Calls: OMEGA -> .OMEGA_FLEX -> xtfrm -> xtfrm.data.frame
Execution halted