Created
May 6, 2013 08:45
-
-
Save nassimhaddad/5524047 to your computer and use it in GitHub Desktop.
using trycatch
This file contains 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
result = tryCatch({ | |
expr | |
}, warning = function(w) { | |
warning-handler-code | |
}, error = function(e) { | |
error-handler-code | |
}, finally { | |
cleanup-code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment