selectOption {goCluster} | R Documentation

## A menu for choosing an option

### Description

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.

### Usage

    selectOption(options, message)
    selectOptions(options, message, all)

### Arguments

`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.

### Details

`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.

### Value

The option(s) chosen by the user are being returned as a character vector.

### Author(s)

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

### See Also

`selectCore`, `selectDouble`, `selectNumber`.

### Examples

    if(interactive()){
    ## This example can only be run in an interactive mode

    selectOption(c("A","B","C"), "Please choose one of the following options")
    }

[Package goCluster version 1.4.0 Index]