This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/menu.html
menu {base}R Documentation

Description

menu presents the user with a menu of choices labelled from 1 to the number of choices. To exit without choosing an item one can select ‘0’.

Usage

menu(x)

Arguments

x

a character vector of choices

Value

The number corresponding to the selected item, or 0 if no choice was made.

Examples

switch(menu(c("List letters", "List LETTERS")) + 1,
       cat("Nothing done\n"), letters, LETTERS)

[Package base version 0.60 ]