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))) )
Error in running mxModel:
<simpleError in if (nrow(covMatrix) != ncol(covMatrix)) {    modelname <- getModelName(flatExpectation)    msg <- paste("The expected covariance matrix associated",         "with the expectation function in model", omxQuotes(modelname),         "is not a square matrix.")    stop(msg, call. = FALSE)}: argument is of length zero>
Error in running mxModel:
<simpleError in if (nrow(covMatrix) != ncol(covMatrix)) {    modelname <- getModelName(flatExpectation)    msg <- paste("The expected covariance matrix associated",         "with the expectation function in model", omxQuotes(modelname),         "is not a square matrix.")    stop(msg, call. = FALSE)}: argument is of length zero>
Warning in if (nrow(covMatrix) != ncol(covMatrix)) { :
  argument is of length zero
        Length Class  Mode     
message 1      -none- character
call    3      -none- call     
> 
> ## 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))
Error in running mxModel:
<simpleError in if (nrow(covMatrix) != ncol(covMatrix)) {    modelname <- getModelName(flatExpectation)    msg <- paste("The expected covariance matrix associated",         "with the expectation function in model", omxQuotes(modelname),         "is not a square matrix.")    stop(msg, call. = FALSE)}: argument is of length zero>
Warning in if (nrow(covMatrix) != ncol(covMatrix)) { :
  argument is of length zero
> summary(bcg)
        Length Class  Mode     
message 1      -none- character
call    3      -none- call     
> 
> plot(bcg)
Error in xy.coords(x, y, xlabel, ylabel, log) : 
  'x' is a list, but does not have components 'x' and 'y'
Calls: plot -> plot.default -> xy.coords
Execution halted