powered by
Ask a yes/no question with numbered choices. Returns TRUE for yes, FALSE for no, or NULL if cancelled.
TRUE
FALSE
NULL
console_confirm(question)
TRUE if user selects Yes, FALSE for No, NULL
if cancelled.
The question to display.
# \donttest{ if (interactive()) { if (isTRUE(console_confirm("Overwrite existing file?"))) { message("Overwriting...") } } # }
Run the code above in your browser using DataLab