allow mxOption to get as well as set

Posted on
Picture of user. tbates Joined: 07/31/2009
currently

mxOption(m1, key="Number of Threads")

and

mxOption(m1)

Both fail (no value, no key errors, respectively)

It would be nice if asking for a key returned its value, and asking about a model returned the currently active options

Replied on Sat, 04/26/2014 - 20:45
Picture of user. mhunter Joined: 07/31/2009

The current way to get Options is


model@options # show the model options
options()$mxOptions # list all mxOptions (global settings)

These are given on the help page for mxOption. The same place you'd go to set the options, tells you how to get them.