menu2 {grand} | R Documentation |
menu()
response as choice textReturns menu()
response as choice text
menu2(choices, title, loop = FALSE)
choices |
a character vector of choices |
title |
a character string to be used as the title of the menu. |
loop |
boolean: should the menu loop to allow multiple choices? |
string: the chosen option
choice <- menu2(choices = c("A", "B", "C"), title = "Choose an option", loop = TRUE)