Re: [Rd] Problem with Rboolean in c++ code

2013-05-24 Thread Jan van der Laan
On 05/24/2013 05:02 PM, Prof Brian Ripley wrote: On 24/05/2013 15:55, Jan van der Laan wrote: Thanks. That does the trick. Although I now have to rewrite some other stuff, but I have just started so better now than later. To be honest, a first and even a second read of the r-extensions manua

Re: [Rd] Problem with Rboolean in c++ code

2013-05-24 Thread Prof Brian Ripley
On 24/05/2013 15:55, Jan van der Laan wrote: Thanks. That does the trick. Although I now have to rewrite some other stuff, but I have just started so better now than later. To be honest, a first and even a second read of the r-extensions manual did not really make it clear, to me at least, that

Re: [Rd] Problem with Rboolean in c++ code

2013-05-24 Thread Jan van der Laan
Thanks. That does the trick. Although I now have to rewrite some other stuff, but I have just started so better now than later. To be honest, a first and even a second read of the r-extensions manual did not really make it clear, to me at least, that Rdefines.h is preferred above Rinterna

Re: [Rd] Problem with Rboolean in c++ code

2013-05-24 Thread Prof Brian Ripley
On 24/05/2013 07:53, Jan van der Laan wrote: I am trying to use R_RegisterCFinalizerEx to ensure some c++ object is properly deleted after use. However, I run into some problems when trying to pass in the third argument which is an Rboolean. The line 'R_RegisterCFinalizerEx(p, finalizer, TRUE);