Created
September 10, 2015 14:52
-
-
Save hadley/f8ac6e273853a06ac7fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| run_me <- function() { | |
| message("You shouldn't have done that...") | |
| while(TRUE) { | |
| tryCatch( | |
| Sys.sleep(1), | |
| interrupt = function(err) { | |
| message("You can't escape that easily!") | |
| } | |
| ) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment