[R] R.oo Destructors

From: Feng, Ken [CIB-EQTY] <ken.feng_at_citigroup.com>
Date: Wed 17 Jan 2007 - 23:51:36 GMT

Has anyone figured out how to create a destructor in R.oo?

How I'd like to use it: I have an object which opens a connection thru RODBC
(held as a private member) It would be nice if the connection closes automatically
(inside the destructor) when an object gets gc()'ed.

Thanks in advance.

BTW, a >BIG< thanks to Henrik Bengtsson for creating the R.oo package! Lucky for me as I am not smart enough to use S4...

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 and provide commented, minimal, self-contained, reproducible code. Received on Thu Jan 18 11:00:10 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 18 Jan 2007 - 02:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.