tryCatch(需要捕捉的表达式, error = 错误时触发的函数式, finally = 最终一定要运行的函数式)
例如:tryCatch(func1(), error=function(e){ print(e);print('do something')}, finally=func_finally())
tryCatch(需要捕捉的表达式, error = 错误时触发的函数式, finally = 最终一定要运行的函数式)
例如:tryCatch(func1(), error=function(e){ print(e);print('do something')}, finally=func_finally())
本文标题:R 异常处理 tryCatch
本文链接:https://www.haomeiwen.com/subject/apaepttx.html
网友评论