Favorite ways of dealing with errors


#1

I'm fairly primitive in how I deal with errors (try, tryCatch). Does anyone have any cool and better ways?


#2

Check out Amanda Gadrow's talk from rstudio::conf, definitely has some helpful tips!
https://www.rstudio.com/resources/videos/debugging-techniques-in-rstudio/


#3

The advanced R chapter is useful to understand these
http://adv-r.had.co.nz/Exceptions-Debugging.html

there also a :package: called {attempt} that offer to simplify the way to use error and condition


You may find it useful.


#4

Very similar package from my ex-colleague:


#5

Awesome, thanks guys. Will take a look at all of this.