[R] organizing work; dump function

Thu Sep 28 15:54:01 CEST 2000

> Dear R-users!
> I am using R 1.0.0 and Windows NT 4.0
In the past I have used several different working directories for different
projects, and during many of these projects I have written some functions
for particular purposes. Now I thought I would be nice to have all these
"personal" functions collected in one place, and to make them available in R
no matter which working directory I use.

Reading the manual "An Introduction to R Version 1.0.0", chapter 10.8
("Customizing the environment"), I guess the (best ?) way to this is to dump
all my functions into one big file "myfunctions.R" and source that into R
via a .First function in my Rprofile file.

But, when I write new functions and want to add these to my personal
collection "myfunctions.R", it would be nice to have something like
> dump("new.function", file="myfunctions.R", append=TRUE).
AFAIK this isn't possible (there is no append argument to dump), so I guess
I have to create new files each time and then copy these together somehow.

So my questions are:
1) Does this way to organize ones functions make sense, or are there better
2) If it makes sense, wouldn't an "append" argument to "dump" be a useful

Heinrich Rinner.
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