# NOT RUN {
# generating an example Mplus syntax refering to a R object
# with correlation data
data(example1) # loading fictional example correlation matrix
Mplus_esyn(N = 300, Cor = example1)
## Mplus syntax is now saved in the current workspace
################################################################
### 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