Description Usage Arguments Examples
Sometimes when you ask someone for data, they don't feel like sharing. This function helps you with this situation. This provides a dialog box that confirms whether a user wants to cancel a script. It is intended to follow an rstudio::showPrompt dialog box where the user decides to hit cancel. If the user is not using RStudio, or their version of RStudio is not 1.1.67 or greater, it will use menu() to ask in the console. Because portability.
1 2 3 |
cancel_title |
The title of the dialog box |
cancel_message |
The message confirming if the user would like to cancel |
cancel_ok |
The |
cancel_cancel |
User input option that will return FALSE |
... |
Used to handle arguments intended for other functions, as cancelbox() is a helper function |
cancel_ok |
User input option that will cancel the script |
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.