[R] save.image() excluding functions

Agustin Lobo alobo at ija.csic.es
Fri Feb 22 16:26:54 CET 2002


If the recommendation is to write functions with an external editor 
(I mean, avoiding fix()), keep them as text files (*.R) and using
source() to bring them into the R session, why not excluding,
by default, function objects from save.image() ?
In particular, from the final save.image(),
the one that is proposed at q().

In this way, functions would not get included within .RData,

I've made a personal misave() that excludes functions, but 
it might be a good idea having this as the default 
behaviour. Or perhaps, at least saving functions to
a text file (.Rtext) and the rest of objects 
as rda (.RData).

Just a suggestion.

Agus

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list