Description Usage Arguments Value Examples
Ask question in the command line
1 | ask_question(title, answers = c("y", "N"), enterIsValidQuit = TRUE)
|
title |
for the question. |
answers |
the vector for answers for the question. You may include vector elements (answers) as many as possible. |
enterIsValidQuit |
exits the prompt when an empty answer is provided,
e.g. with Enter, with a return value of |
The selected answer as a character vector. If no answer returned and
if enterIsValidQuit
is set to TRUE
, a NULL
is returned.
1 2 3 4 5 | ## Not run:
ask_question("Do you like me?")
ask_question("How much do you like this?", seq(5))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.