[R] how to get a primitive function object

Yi Zhang yizhang84 at gmail.com
Fri Jan 23 21:28:40 CET 2009


On Fri, Jan 23, 2009 at 2:50 PM, Duncan Murdoch <murdoch at stats.uwo.ca> 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
>

Thanks. I've read all the manuals and my situation is more complicated
than the external ptrs and finalizers can handle. I'll probe the
R-devel list and see what I can get.

-- 
Yi




More information about the R-help mailing list