Re: [Rd] How to debug C code running in R

2007-04-23 Thread Duncan Murdoch
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 de

Re: [Rd] How to debug C code running in R

2007-04-23 Thread Prof Brian Ripley
You haven't told us your OS (as asked for in the posting guide). But Writing R Extensions section 4.4 rw-FAQ Q8.4 both appear to give the instructions you are asking for. On Sun, 22 Apr 2007, Tong Wang wrote: > Hi, >I am in the situation where I could get my code run correctly under > GN

[Rd] How to debug C code running in R

2007-04-22 Thread Tong Wang
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 ? Thanks ___