View source: R/other_functions.R
Ask.User.YN.Question | R Documentation |
This function creates an interactive yes/no question.
Ask.User.YN.Question(question, GUI = TRUE, add.lines.before = TRUE)
question |
string. Your question as a character string. |
GUI |
logical. TRUE for using GUI or FALSE for using console. |
add.lines.before |
logical. Simply add some line after your questions. |
logical.
## Not run:
if (Ask.User.YN.Question("Your question goes here?", GUI = FALSE, add.lines.before = TRUE)) {
Some Code Here
} else {
More Code Here
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.