Skip to content
Prev 168038 / 398502 Next

how to get a primitive function object

On 1/23/2009 1:47 PM, Yi Zhang wrote:
External pointers are the standard way to do that.  You don't need to 
worry about reference counting, R's garbage collector will call a 
finalizer when it doesn't need the object any more.

I think the usual example of this is the RODBC package, which maintains 
database connections that way.

If it and the Writing R Extensions manual aren't enough docs for you, 
you should probably move the question to the R-devel list:  this is 
pretty technical for R-help.

Duncan Murdoch