What is the recommended way to trap errors in R? My main need is to be able to trap an error and then skip a section of code if an error has occurred. In VB for Excel I used the “On Error goto .....” construct to do this. Bernard Sent from my iPhone so please excuse the spelling!"