[Rd] Object finalization

Timothy H. Keitt tklistaddr@keittlab.bio.sunysb.edu
Tue, 10 Jul 2001 19:24:05 -0400


I see some code in R to attach finalizers to external pointer references 
(Register[C]Finalizer).  Anyone have an example of how to code the 
finalizer?  R_RegisterCFinalizer accepts a C function, but I can't see 
how to get it to operate on the pointer, since the pointer is not passed 
to the function when its called.  RegisterFinalizer takes an R closure, 
but how is it called from R (tried .Internal)?

Tim

-- 
Timothy H. Keitt
Department of Ecology and Evolution
State University of New York at Stony Brook
Stony Brook, New York 11794 USA
Phone: 631-632-1101, FAX: 631-632-7626
http://life.bio.sunysb.edu/ee/keitt/

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._