The R Project SVN R

Rev

Rev 70779 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70779 Rev 88539
Line 1... Line 1...
1
% File src/library/utils/man/menu.Rd
1
% File src/library/utils/man/menu.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2013 R Core Team
3
% Copyright 1995-2025 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{menu}
6
\name{menu}
7
\alias{menu}
7
\alias{menu}
8
\title{Menu Interaction Function}
8
\title{Menu Interaction Function}
Line 39... Line 39...
39
\seealso{
39
\seealso{
40
  \code{\link{select.list}}, which is used to implement the graphical
40
  \code{\link{select.list}}, which is used to implement the graphical
41
  menu, and allows multiple selections.
41
  menu, and allows multiple selections.
42
}
42
}
43
\references{
43
\references{
44
  Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
44
  \bibshow{R:Becker+Chambers+Wilks:1988}
45
  \emph{The New S Language}.
-
 
46
  Wadsworth & Brooks/Cole.
-
 
47
}
45
}
48
\examples{
46
\examples{
49
\dontrun{
47
\dontrun{
50
switch(menu(c("List letters", "List LETTERS")) + 1,
48
switch(menu(c("List letters", "List LETTERS")) + 1,
51
       cat("Nothing done\n"), letters, LETTERS)
49
       cat("Nothing done\n"), letters, LETTERS)