📜  try catch in - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:51:59.301000             🧑  作者: Mango

代码示例1
result = tryCatch({
    expr
}, warning = function(w) {
    warning-handler-code
}, error = function(e) {
    error-handler-code
}, finally = {
    cleanup-code
}