Thank you Michael
Still i didn't handle it.
I have checked model1.out in the same directory. For your second recommendation, i don't know how to run R from windows command prompt.
Since Mplus Demo is limited by number of variables, i chose to use MplusAutomation to do latent variable interaction effects for my thesis.
Even i tried the same command by Joshua F. Wiley using data in r "mtcars" just to see how its working.
here is :
library(MplusAutomation)
test1 <- mplusObject(
TITLE = "test the MplusAutomation;",
MODEL = "
mpg ON wt hp;
wt WITH hp;",
usevariables = c("mpg", "wt", "hp"),
rdata = mtcars)
res1 <- mplusModeler(test1, "mtcars.dat", modelout = "model1.inp", run = 1L)
summary(res1)
and again the error is the same. That's
Wrote model to: model1.inp
Wrote data to: mtcars.dat