empty model name

4 replies [Last post]
mspiegel's picture
Offline
Joined: 07/31/2009

We spoke at the developer's meeting about reserved symbols for labels. The symbols that cannot be used are "." which is special as a separator between the model name and label name. Also the '[' and ']' are special and they are used for substitutions. Also it turns out that if you give a model an empty name "", things currently break. I'll probably throw an error if you try to name anything with the empty name.

pdeboeck's picture
Offline
Joined: 08/04/2009
Is there any chance of being

Is there any chance of being able to use greek letters for model names & matrix labels? For example, any chance of being able to use labels such as \delta t1? Expression() doesn't return a character vector, so that won't work with mxMatrix. I don't know whether R can handle output/input with greek letters. (e.g., is there a package that would allow you to assign values to greek letters?)

Just curious...

Steve's picture
Offline
Joined: 07/30/2009
R can accept unicode (if your

R can accept unicode (if your terminal is appropriately localized).

> t1 <- "ß"
> t1
[1] "ß"

pdeboeck's picture
Offline
Joined: 08/04/2009
Awesome! I'm going to set

Awesome! I'm going to set that up.

mspiegel's picture
Offline
Joined: 07/31/2009
I took one of our simple test

I took one of our simple test scripts and added both latin1 characters and latex names such as "\delta t1". The OpenMx library seems to work fine on both of these cases. One weird glitch is that you need to escape the backslash by typing two backslashes. Which is fine, except that when a character matrix is printed out in R, both backslashes are printed. I don't know whether this is a bug or a feature.

AttachmentSize
UnusualLabels.R 1.95 KB