Skip to content

Instantly share code, notes, and snippets.

@nassimhaddad
Created May 6, 2013 08:45
Show Gist options
  • Save nassimhaddad/5524047 to your computer and use it in GitHub Desktop.
Save nassimhaddad/5524047 to your computer and use it in GitHub Desktop.
using trycatch
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