selectOption {goCluster} | R Documentation |
The function generates a menu that allows the user to choose amongst
the options specified. selectOption
allows to select only one
of the options while selectOptions
will allow the user to
select several of them.
selectOption(options, message) selectOptions(options, message, all)
options |
The available options as character vector. |
message |
The informational message that will be shown together with the menu. |
all |
An additional string that allows to select all options at the same time. |
selectOption
will offer a menu to choose one of the options
given by the character vector options
.
selectOptions
will offer a similar menu but the user can choose
several options.
The option(s) chosen by the user are being returned as a character vector.
Gunnar Wrobel, work@gunnarwrobel.de, http://www.gunnarwrobel.de.
selectCore
,
selectDouble
,
selectNumber
.
if(interactive()){ ## This example can only be run in an interactive mode selectOption(c("A","B","C"), "Please choose one of the following options") }