Re: [Rd] R callbacks

2007-04-04 Thread Prof Brian Ripley
On Tue, 3 Apr 2007, Deepayan Sarkar wrote: > On 4/3/07, Simon Urbanek <[EMAIL PROTECTED]> wrote: >> On Apr 2, 2007, at 8:51 PM, Deepayan Sarkar wrote: >> >>> Hi, >>> >>> I'm trying to understand (mostly from the R-exts manual) how to use >>> the callbacks declared in Rinterface.h. As a first attem

Re: [Rd] R callbacks

2007-04-03 Thread Deepayan Sarkar
On 4/3/07, Simon Urbanek <[EMAIL PROTECTED]> wrote: > On Apr 2, 2007, at 8:51 PM, Deepayan Sarkar wrote: > > > Hi, > > > > I'm trying to understand (mostly from the R-exts manual) how to use > > the callbacks declared in Rinterface.h. As a first attempt, I'm trying > > to redefine ptr_R_WriteConsol

Re: [Rd] R callbacks

2007-04-03 Thread Simon Urbanek
On Apr 2, 2007, at 8:51 PM, Deepayan Sarkar wrote: > Hi, > > I'm trying to understand (mostly from the R-exts manual) how to use > the callbacks declared in Rinterface.h. As a first attempt, I'm trying > to redefine ptr_R_WriteConsole in a very trivial manner. Here's my > code: > > ---

Re: [Rd] R callbacks

2007-04-02 Thread Byron Ellis
Hi Deepayan, IIRC Rf_initialize_R sets up the pointers so ptr_R_WriteConsole is just being overwritten by the original. You want to do it between initialization and the mainloop On 4/2/07, Deepayan Sarkar <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to understand (mostly from the R-exts manual

[Rd] R callbacks

2007-04-02 Thread Deepayan Sarkar
Hi, I'm trying to understand (mostly from the R-exts manual) how to use the callbacks declared in Rinterface.h. As a first attempt, I'm trying to redefine ptr_R_WriteConsole in a very trivial manner. Here's my code: --- $ cat altr.c int Rf_initialize_R(int ac, char **av); #define R_