How do I add a demo script to an OpenMx directory?

Posted on
Picture of user. trinewa Joined: 11/30/2009
Hi
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?

Replied on Fri, 02/04/2011 - 10:46
Picture of user. mspiegel Joined: 07/31/2009

The demos are stored in our subversion source code repository. There are a few steps necessary in order to include a new script in the demo directory:

(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.