Tutorial by Examples

The browser function can be used like a breakpoint: code execution will pause at the point it is called. Then user can then inspect variable values, execute arbitrary R code and step through the code line by line. Once browser() is hit in the code the interactive interpreter will start. Any R code ...
You can set any function for debugging with debug. debug(mean) mean(1:3) All subsequent calls to the function will enter debugging mode. You can disable this behavior with undebug. undebug(mean) mean(1:3) If you know you only want to enter the debugging mode of a function once, consider t...

Page 1 of 1