selectOption {goCluster} | R Documentation |
This function generates a menu that allows the user to choose amongst the options specified.
selectOption(options, message)
options |
The available options as character vector. |
message |
The informational message that will be shown together with the menu. |
selectOption
will offer a menu to choose one of the options
given by the character vector options
.
The choice of the user is being returned as a string.
Gunnar Wrobel, http://www.gunnarwrobel.de.
selectCore
,
selectDouble
,
selectNumber
.
## This example needs to be commented out since it requires user input ## and would prevent R CMD check from running. Please remove the comment ## in the following line to run the example. ## selectOption(c("A","B","C"), "Please choose one of the following options")