I'm fairly primitive in how I deal with errors (try
, tryCatch
). Does anyone have any cool and better ways?
Check out Amanda Gadrow's talk from rstudio::conf, definitely has some helpful tips!
https://www.rstudio.com/resources/videos/debugging-techniques-in-rstudio/
2 Likes
The advanced R chapter is useful to understand these
http://adv-r.had.co.nz/Exceptions-Debugging.html
there also a called {attempt} that offer to simplify the way to use error and condition
You may find it useful.
2 Likes
Very similar package from my ex-colleague:
2 Likes
Awesome, thanks guys. Will take a look at all of this.