You are here

allow mxOption to get as well as set

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


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



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
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
Joined: 05/24/2012 - 00:35
makes sense

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