mymenu: Simple menu input.

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Implements a simple menu were user can choose one of several options.

Usage

1
mymenu(choices, title = "", pt = FALSE)

Arguments

choices

Menu options.

title

Title to be displayed in the menu.

pt

Use portuguese on prompt?

Value

Index of the chose option.

See Also

msgYesNo

Examples

1
2
ans <- mymenu(c("One", "Two", "Three"), "Select an option")
print(ans)

tunelipt/wutils documentation built on Nov. 5, 2019, 11:01 a.m.