Skip to content

Instantly share code, notes, and snippets.

@PietrH
PietrH / tryCatch.R
Created January 14, 2021 08:37 — forked from nassimhaddad/tryCatch.R
using trycatch
result = tryCatch({
    expr
}, warning = function(w) {
    warning-handler-code
}, error = function(e) {
    error-handler-code
}, finally {
    cleanup-code
}