[R] finalize objects

From: mkondrin <mkondrin_at_hppi.troitsk.ru>
Date: Wed 13 Jul 2005 - 21:30:53 EST


Hello!
How to set function for the whole R-class to be executed when the object is no more referenced from R and garbage collection takes place? I need the function to be applied for the whole class (let it be "someRClass") like this someRClass.on.finalize<-function(...){...}. I have found reg.finalizer function in the manuals, but it apply for the class instance, the thing that I do not like.
What is the solution?



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 13 21:36:07 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:37 EST