How do I add a demo script to an OpenMx directory?
Posted on
trinewa
Joined: 11/30/2009
Forums
Hi
I woulld like to share a demo script to the following directory:
http://openmx.psyc.virginia.edu/repoview/1/trunk/demo
I woulld like to share a demo script to the following directory:
http://openmx.psyc.virginia.edu/repoview/1/trunk/demo
The Wiki says where to put the file, but not technically how to add the file to the directory.
Any help?
The demos are stored in our
(1) Make sure there are no commands in the script that are specific to your environment. So eliminate any calls to setwd(). Also data cannot be read using read.table() or similar functions. Replace them with calls to data(), and we'll place the dataset in the OpenMx library as well. Make sure the dataset can be released to the public. The script should not access the internet using source('http://'), we assume all demos work without an internet connection.
(2) Add error checking to the end of the script. See ?omxCheckEnough for the omxCheck* family of functions. See (http://openmx.psyc.virginia.edu/repoview/1/trunk/demo/DefinitionMeans_PathRaw.R) for an example of error checking.
We can commit the file into the repository once the changes have been made.
Log in or register to post comments
In reply to The demos are stored in our by mspiegel
Must demo scripts always be
Log in or register to post comments
In reply to Must demo scripts always be by trinewa
The script could generate its
Log in or register to post comments
In reply to Must demo scripts always be by trinewa
Also you can often reuse one
There are now quite a few:
data(package="OpenMx")
Log in or register to post comments