Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] finalize objects

mkondrin@hppi.troitsk.ru

2005-07-13


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@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
©2008 r-help.com - Jax Systems, LLC, U.S.A.