askUser | R Documentation |
askUser
provides a way to ask the user a yes/no/cancel question (default). A *
after a number indicates the default option.
askUser(
msg,
choices = c("Yes", "No", "Cancel"),
default = 1,
col = crayon::black
)
msg |
character: the prompt message for the user |
choices |
character: vector of choices (default: |
default |
character/integer: default option if only |
col |
function: a color function (default: |
the integer number choosen by the user
if (interactive())
askUser("Do you want to use askUser?")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.