allow mxOption to get as well as set

2 replies [Last post]
tbates's picture
Offline
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

jpritikin's picture
Offline
Joined: 05/23/2012
makes sense

Yeah, that's a common user interface idiom. SVN 3386

mhunter's picture
Offline
Joined: 07/31/2009
The current way to get

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.