[R] R debugging options

Francisco J. Zagmutt gerifalte28 at hotmail.com
Tue Apr 18 03:08:44 CEST 2006

RSiteSearch("debug") or RSiteSearch("debugging") will give you a lot or 
relevant information.  I personally use library(debug) extensivelly and it 
should do all the taks you asked about. There is a nice article describing 
the debug lilbrary in the 2003/3 issue of R News 



>From: Larry Howe <larry.howe at comjet.com>
>To: r-help at stat.math.ethz.ch
>Subject: Re: [R] R debugging options
>Date: Mon, 17 Apr 2006 20:29:47 -0400
>On Monday April 17 2006 19:45, Larry Howe wrote:
> > Hello,
> >
> > What options are available for me to debug my R scripts? For example I
> > normally do something like
> >
> > >source("myfunctions.R")
> > >function1("height", "weight")
> >
> > myfunctions.R is a large R source file that contains many functions.
> > function1 is the "main" function in myfunctions.R. It calls many other
> > user-written functions that are also in myfunctions.R.
> >
> > I only want to debug the R scripts. I do not need to get into the code 
>of R
> > itself. I would like to be able to:
> >
> > - see the source as I am debugging
> > - execute line-by-line
> > - see and modify variables
> > - have the option to either descend into function calls, or not
> > - have the option to either descend into loops, or not
> >
> > Maybe this is asking too much but I thought I would lay out my dreams 
> > then you can tell me what is really possible.
>Forgot to mention: I am working in linux and solaris. Other people here are
>working in windows. So I am interested in options for either platform.
>R-help at stat.math.ethz.ch mailing list
>PLEASE do read the posting guide! 

More information about the R-help mailing list