Main debugging operations
Stepping through the source code
In R, you can use the
debugfunction or set breakpoints.Pretty good control over how to step through: options for line by line, step into functions, continue through loops.
Inspecting variables
A low-rent way of doing this is to add
printstatements to your function.R’s browser allows you to inspect variables in the function’s environment at intermediate points in execution.