From murdoch at stats.uwo.ca  Mon Apr 23 12:44:25 2007
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Mon, 23 Apr 2007 06:44:25 -0400
Subject: [Rd] How to debug C code running in R
In-Reply-To: <dde9f9a92244a.462bd1c4@usc.edu>
References: <dde9f9a92244a.462bd1c4@usc.edu>
Message-ID: <462C8E09.6060103@stats.uwo.ca>

On 4/23/2007 12:21 AM, Tong Wang wrote:
> Hi,
>     I am in the situation where I could get my code run correctly under GNU C, but it produced different (strange) results
> while running in R . ( I use .C to call the function).   May I get some general advice on how could I do step by step debug
> of source code in R ?

There's a chapter on debugging in Writing R Extensions, with specific 
advice for compiled code.  I also put together a web page of mostly 
Windows-specific advice, at

http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR

Duncan Murdoch



[Rd] How to debug C code running in R
Duncan Murdoch