How to write trycatch in R How to write trycatch in R r r