selectOption {goCluster}R Documentation

A menu for choosing an option

Description

This function generates a menu that allows the user to choose amongst the options specified.

Usage

selectOption(options, message)

Arguments

options The available options as character vector.
message The informational message that will be shown together with the menu.

Details

selectOption will offer a menu to choose one of the options given by the character vector options.

Value

The choice of the user is being returned as a string.

Author(s)

Gunnar Wrobel, http://www.gunnarwrobel.de.

See Also

selectCore, selectDouble, selectNumber.

Examples

## 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")

[Package goCluster version 1.0.0 Index]