5.9 Fixing errors: Tracebacks
In R, every error is accompanied by a traceback, or call stack, which literally traces back through the sequence of calls that lead to the error
The functions are printed in reverse order
The traceback tool pinpoints the location of an error.
5.9.1 Example of reading traceback
## [1] 4
- This will generate an error below
- The traceback is shown below:
- Top of the stack points to an error
Flipping the traceback shows the better sequence(the top of the stack points to an error location)
shows sequence of calls that lead to the error — f() called g() called h() (which errors)