You are here

allow mxOption to get as well as set

3 posts / 0 new
Last post
tbates's picture
Offline
Joined: 07/31/2009 - 14:25
allow mxOption to get as well as set

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

mhunter's picture
Offline
Joined: 07/31/2009 - 15:26
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.

jpritikin's picture
Offline
Joined: 05/24/2012 - 00:35
makes sense

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

Log in or register to post comments