Re:ARrgh: a newcomer's angry guide to R (2013)
by hadley on Tuesday December 16, 2014 @12:52AM
(#8756020)
You probably want options(error = recover). If you're not getting line numbers you need to upgrade R. You might find http://adv-r.had.co.nz/Exceptions-Debugging.html helpful.
So you get errors, crashes and warning, and the only way to debug R, is to inject message() statements all over the code.