Wednesday, February 23, 2011

To debug R code

Either :
* put the command browser() : will stop where the command "browser" was called
* or call the function debug : debug(name_function_to_debug) : will stop at the start of the script
* options(error=recover)

Type "Q" to exit the browser. Type "n" to execute the next line. Type "c" or ENTER to continue running and exit the function.

No comments:

Post a Comment