[Rd] reinterpreting externalptr in R

2012-12-25 Thread andre__
Hi, I am using swig to build a wrapper for an c-function to use it in R. I would like to define a generic function, which gives back a void pointer. On the R side, I know what this pointer is pointing to, whether it is an integer or an string, or something else... but I need to somehow reinterpret

Re: [Rd] reinterpreting externalptr in R

2012-12-25 Thread Simon Urbanek
On Dec 25, 2012, at 6:39 AM, andre__ wrote: > Hi, > > I am using swig to build a wrapper for an c-function to use it in R. I would > like to define a generic function, which gives back a void pointer. On the R > side, I know what this pointer is pointing to, whether it is an integer or > an strin