SachaEpskamp / semPlot

Path diagrams and visual analysis of various SEM packages' output
GNU General Public License v2.0
61 stars 20 forks source link

semPlot / semPaths error: Error in `*tmp*`[[i]] : subscript out of bounds #31

Open rcurtale opened 3 years ago

rcurtale commented 3 years ago

Dear community,

I tried to obtain a plot of my model:

semPaths(fit_PE, what="paths")

but I receive the following message:

Error in *tmp*[[i]] : subscript out of bounds

From my understanding, it seems that the semPath function is trying to access an array out of its boundary, but I do not know how to fix it.

Can anyone help me with this error?

Best regards,

Riccardo

yrosseel commented 3 years ago

I believe this only happens with a dev version of lavaan (which currently removes the @Fit slot). See also issue #28. This also works with the dev version of semPlot, which hopefully will find its way to CRAN soon.