illegal characters in names

Posted on
Picture of user. Dorothy Bishop Joined: 02/04/2010
Forums
I noticed that you are modifying OpenMx to disallow forbidden characters in names or labels: "+-!~?:*/^%<>=&|$"
Just to say that this will have implications for some of the demonstration scripts. I have not checked them all, but the model on p 31 of the OpenMx documentation has a model name that won't work, and I have also found cases in demo files where the objective has the name "-2LL".

For beginners used to other programming languages, the fact that a syntax error does not terminate operation of a script is confusing.
Is this a deliberate choice, an unchangeable feature of R, or something worth considering modifying? I'd prefer it if the script just stopped execution at the error, so I could be sure to fix it before proceeding.

Replied on Thu, 03/18/2010 - 11:41
Picture of user. mspiegel Joined: 07/31/2009

Are you looking at Release 0.2.10-1172 of the documentation? I thought we are catching any runtime errors in the user manual.
Replied on Fri, 03/19/2010 - 02:39
Picture of user. Dorothy Bishop Joined: 02/04/2010

In reply to by mspiegel

Yes, I had older version. Have now updated.
But I think this may still affect some 'demo' scripts, unless they have been checked as well, and certainly it applies to some of those available from:
http://www.vipbg.vcu.edu/~vipbg/OpenMx/
I think the manual might just include a note saying :
Some downloadable OpenMx scripts were written before OpenMx introduced restrictions on illegal characters in names of objects. Check all output carefully, and if necessary rename models and their component objects to avoid the following characters: +-!~?:*/^%<>=&|$