Skip to content
Prev 70251 / 398506 Next

Error handling

On 5/23/05, Carsten Steinhoff <carsten.steinhoff at gmx.de> wrote:
See

?try
?tryCatch

For example, using try:

result <- try(myfun(...whatever...))
if(inherits(result, "try-error")) ...process the error...