[Rd] save/load hooks

Timothy H. Keitt keitt@nceas.ucsb.edu
Fri, 21 Jul 2000 11:40:01 -0700


I'd like to suggest a small feature be added to R.  It would be nice if
"load" and "save" had function hooks for object initialization and
finalization, e.g.,

	load.hook <- function(x) UseMethod("load.hook")
	save.hook <- function(x) UseMethod("save.hook")

These would then be called on each object saved or loaded.  The default
method would do nothing.   This would allow saved objects to
reinitialize their state when loaded.

Cheers,
Tim

-- 
Timothy H. Keitt
National Center for Ecological Analysis and Synthesis
735 State Street, Suite 300, Santa Barbara, CA 93101
Phone: 805-892-2519, FAX: 805-892-2510
http://www.nceas.ucsb.edu/~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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._