Pick widget options

DESCRIPTION:

Returns the default widget-specific options to be used by the dialog.create function in creating a new dialog. This is not meant to be a user-callable routine.

Note: This function is deprecated. For more information, see .

USAGE:

dialog.widget.options(index, values, widgets) 

REQUIRED ARGUMENTS:

index
vector of indices into the values list and widgets vector.
values
list of initial values for the fields in the dialog being created by dialog.create.
widgets
vector of widget types to be created.

VALUE:

returns a single character string to be used in constructing the command sent to the dialog handling system to create the specific widget in question.

The returned option string is dependent on the widget being used and/or the type of value for a specific widget. For a factor value, the levels of the factor are used to specify the list of available choices for the corresponding widget. If the widget type is "slider", then an attempt is made to come up with a default range for the slider by using the pretty function. If the widget type is "radiobox", then the default is to have a frame box around the radio button area.

DETAILS:

This function is called via an lapply function call in dialog.create. It is not intended for general use.

SEE ALSO:

EXAMPLES:

lapply(seq(along=values), dialog.widget.options, .values, .widgets)