Hi, I'm having a problem extracting modification indices using readModels(). I am running incorrectly specified CFAs on existing datasets and extracted all possible modification indices using the following code in the analysis file output section to ensure that every output contains all possible indices for gathering together:
modindices(ALL -1000);
The outputs are saved in a folder for extraction. My MplusAutomation readModels() code looks like this:
summary_output <-readModels(
target = "C:/folder_with_outputs",
recursive = FALSE,
quiet = FALSE)
Unfortunately I get error messages that look like this (and result in not extracting any modification index info that I can see does exist):
Reading model: C:/folder_with_outputs/filename_rep_1.out
Error extracting MODINDICES in output file: C:/folder_with_outputs/filename_rep_1.out
<simpleError in is.na(columnNames) || is.null(columnNames): 'length = 7' in coercion to 'logical(1)'>
Thank you in advance for any help you can give!
Best,
Liz