Link Documentation directly to Example Scripts/Data

I would like to link all the OpenMx scripts directly to the documentation, but don't know where they physically reside, and can't find them from the website.

Ideally, if a user clicks on a (linked) script, it should open immediately in their R application so it can be run with just two clicks (assuming the user has R installed). Could/should this be done and if so, how?

All the demo files are available right on the user's machine, so one thing to do might be to give a clickable link which opens in a browser window, and along side it the R command to open the file locally?

Umm what? If they have the OpenMx library installed, they can run a demo by typing demo(FooBarBaz). That's the point of the demos. Otherwise they can download the file and source the file in R. Any call to system is both (a) tricky to make sure that different variations are included for all three supported platforms (OS X, Linux, and Windows), and (b) a potential security risk for shell injection attacks (http://en.wikipedia.org/wiki/Code_injection#Shell_injection)