Skip to content
Back to formatted view

Raw Message

Message-ID: <4F2E949C.4040602@gmail.com>
Date: 2012-02-05T14:39:24Z
From: Duncan Murdoch
Subject: debugging R
In-Reply-To: <1328428894.42181.YahooMailNeo@web120103.mail.ne1.yahoo.com>

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.