Skip to content

How to debug R program?

3 messages · Feng Qiu, Vladimir Eremeev, Gabor Grothendieck

#
#
Please, refer to the chapter 9 of the "R language definition" ($R_HOME/doc/
manual/r-lang.pdf)

The simplest way is using print() functions.

Besides the debugging functions described in the manual, you can use the very 
powerful package debug, developed by Mark Bravington.
#
On 12/28/06, Vladimir Eremeev <wl at eimb.ru> wrote:
Note that on Mac and Windows you may need to use flush.console() as well
if you intend to do this in a loop to be sure that the last print executed is
actually printed prior to the crash.  See ?flush.console