News for hackers. Stuff that matters.
Re:ARrgh: a newcomer's angry guide to R (2013) by kephra on Monday December 15, 2014 @06:06AM (#8751426)
The worst point of R is debugging. R scripts often fail without telling any line number, even if script starts with an "options(error=traceback)". And I never seen line numbers of warnings.

So you get errors, crashes and warning, and the only way to debug R, is to inject message() statements all over the code.

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.