3 ms·
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 s
by kephra 12y ago
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.
- hadley 12y agoYou 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 http://adv-r.had.co.nz/Exceptions-Debugging.html helpful.