| with_graceful_interrupt | R Documentation |
Wraps an expression so that SIGINT (Ctrl+C) is caught gracefully: progress is reported, resources are cleaned up, and the function returns NULL instead of throwing an error.
with_graceful_interrupt(expr, total = 0)
expr |
Expression to evaluate. |
total |
Integer. Total items for progress tracking (batch mode). |
Result of expr, or NULL if interrupted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.