[R] debugging R

Duncan Murdoch murdoch.duncan at gmail.com
Sun Feb 5 15:39:24 CET 2012

On 12-02-05 3:01 AM, Alaios wrote:
> Dear all,
> I am using browse() to debug my R applications. My problem is that I need a bit more control of the debugging process.
> For example 'I want R to stop at the 7th iteration and check. One can do think that I can put the browse inside an if statement but this limits by lot the flexibility one can have.

The trace() function is very flexible, and has the advantage that it 
modifies functions in place, rather than requiring you to edit your 
source.  The disadvantage is that it is so flexible it's sometimes hard 
to figure out how to do what you want.

Duncan Murdoch

> Do you have any suggestions?
> Regards
> Alex
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list