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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: BCG
> ### Title: Dataset on the Effectiveness of the BCG Vaccine for Preventing
> ###   Tuberculosis
> ### Aliases: BCG
> ### Keywords: datasets
> 
> ### ** Examples
> 
> data(BCG)
> 
> ## Univariate meta-analysis on the log of the odds ratio
> summary( meta(y=ln_OR, v=v_ln_OR, data=BCG,
+               x=cbind(scale(Latitude,scale=FALSE),
+               scale(Year,scale=FALSE))) )

Call:
meta(y = ln_OR, v = v_ln_OR, x = cbind(scale(Latitude, scale = FALSE), 
    scale(Year, scale = FALSE)), data = BCG)

95% confidence intervals: z statistic approximation (robust=FALSE)
Coefficients:
             Estimate  Std.Error     lbound     ubound z value  Pr(>|z|)    
Intercept1 -0.7166884  0.0766951 -0.8670079 -0.5663688 -9.3446 < 2.2e-16 ***
Slope1_1   -0.0335019  0.0054079 -0.0441013 -0.0229026 -6.1949 5.831e-10 ***
Slope1_2   -0.0013515  0.0068862 -0.0148483  0.0121453 -0.1963    0.8444    
Tau2_1_1    0.0020944  0.0184838 -0.0341331  0.0383219  0.1133    0.9098    
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Q statistic on the homogeneity of effect sizes: 163.1649
Degrees of freedom of the Q statistic: 12
P value of the Q statistic: 0

Explained variances (R2):
                           y1
Tau2 (no predictor)    0.3025
Tau2 (with predictors) 0.0021
R2                     0.9931

Number of studies (or clusters): 13
Number of observed statistics: 13
Number of estimated parameters: 4
Degrees of freedom: 9
-2 log likelihood: 13.89208 
OpenMx status1: 0 ("0" or "1": The optimization is considered fine.
Other values may indicate problems.)
> 
> ## Multivariate meta-analysis on the log of the odds
> ## The conditional sampling covariance is 0
> bcg <- meta(y=cbind(ln_Odd_V, ln_Odd_NV), data=BCG,
+             v=cbind(v_ln_Odd_V, cov_V_NV, v_ln_Odd_NV))
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
metaSEM
 --- call from context --- 
Diag(index)
 --- call from argument --- 
if (class(x) == "character" & missing(...)) {
    p <- length(x)
    out <- matrix(0, nrow = p, ncol = p)
    diag(out) <- x
} else {
    out <- diag(x, ...)
}
 --- R stacktrace ---
where 1: Diag(index)
where 2: meta(y = cbind(ln_Odd_V, ln_Odd_NV), data = BCG, v = cbind(v_ln_Odd_V, 
    cov_V_NV, v_ln_Odd_NV))

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (x, ...) 
{
    if (class(x) == "character" & missing(...)) {
        p <- length(x)
        out <- matrix(0, nrow = p, ncol = p)
        diag(out) <- x
    }
    else {
        out <- diag(x, ...)
    }
    out
}
<bytecode: 0x55aeeee31fd8>
<environment: namespace:metaSEM>
 --- function search by body ---
Function Diag in namespace metaSEM has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1