# NOT RUN {
## generating an example Mplus syntax referring to a R object with correlation data
data(example1) # loading fictional example correlation matrix
Mplus_esyn(N = 300, Cor = example1)
##### not run until Mplus inputfile 'example1.inp' is processed by Mplus ####
# }
# NOT RUN {
Mplus_eeal("example1.out")
# }
# NOT RUN {
################################################################
### clean up work directory
file.remove("example1.inp") # remove generated Mplus syntax from work dir.
file.remove("example1.dat") # remove generated cor. data from work dir.
# }
Run the code above in your browser using DataLab