Pages

Monday, September 15, 2014

Debugging in R

Summary
  • There are three main indications of a problem/condition: messagewarningerror
    • only an error is fatal
  • When analyzing a function with a problem, make sure you can reproduce the problem, clearly state your expectations and how the output differs from your expectation
  • Interactive debugging tools tracebackdebugbrowsertrace, and recover can be used to find problematic code in functions
  • Debugging tools are not a substitute for thinking!

No comments:

Post a Comment