On Fri, Jan 23, 2009 at 2:50 PM, Duncan Murdoch <murd...@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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to