Closed beib closed 1 year ago
Hi there,
Would you please upload a reproducible example? We need the .out file for readModels and the R code you used to produce the warning above.
Thanks, Michael
Issue arises in extracting modindices. No modindices element in the output. (I believed it was always present before?)
library(lavaan)
library(MplusAutomation)
tmp <- lavaan::simulateData(model = "f =~ x1 + 1.2*x2 + .8*x3 + .9*x4 + 1.1*x5")
x <- mplusObject(rdata = tmp, MODEL = "f by x1-x5;", OUTPUT = "MOD(ALL);")
x <- mplusModeler(x, modelout = "tmp.inp", run = 1L)
#> Warning in is.na(columnNames) || is.null(columnNames): 'length(x) = 7 > 1' in
#> coercion to 'logical(1)'
Created on 2022-07-17 by the reprex package (v2.0.1)
@michaelhallquist
probably because of the highlighted part of extractModIndices_1 function. See the attachment
Following warning message is shown despite models running fine.
Warning message: In is.na(columnNames) || is.null(columnNames) : 'length(x) = 7 > 1' in coercion to 'logical(1)'