accessing model elements

Posted on
Picture of user. Dorothy Bishop Joined: 02/04/2010
Forums
The OpenMx style guide says:
The first useful trick is entering the string model$ in the R interpreter and then pressing the TAB key. You should see a list of all the named entities contained within the model object

I enterd the prior script to define model, but, alas, when I enter:
model$
and press Tab
absolutely nothing happens.
I have a bog standard PC and am using R via the Gui.

Thought I must be doing something stupid and tried several times but no joy.

Replied on Tue, 03/23/2010 - 09:00
Picture of user. Steve Joined: 07/30/2009

In reply to by Mike Cheung

It works in the Mac OS-X terminal window. You do need to press tab twice. The first time does nothing. The second tab press brings up the list of possibilities.

It doesn't work in the Mac OS-X R-64 GUI.

How tab completion works is dependent on which console you are using.

I personally work in R using TextMate for the editor and Terminal (with tcsh and emac keys turned on) on Mac OS-X. I like this the best out of all of the combinations I've tried. As they say, YMMV.