Re: [R] R modules

2007-01-02 Thread Duncan Murdoch
On 1/2/2007 12:46 PM, Geoffrey Zhu wrote: > Hi All, > > I'd like to know what is the best way to organize R code in multiple modules= > and files. The R code we are writing is too much for a single file. Besides= > , there are a lot of reusable functions we'd like to factor out. But writing= > a

Re: [R] R modules

2007-01-02 Thread Gabor Grothendieck
You could have a master file that sources the rest: source("A.R") source("B.R") or you could save the function in a workspace and just load it back in; however, at some point I would move that all to a package. I typically will create a package for myself even if I have no intention of distribut

[R] R modules

2007-01-02 Thread Geoffrey Zhu
Hi All, I'd like to know what is the best way to organize R code in multiple modules= and files. The R code we are writing is too much for a single file. Besides= , there are a lot of reusable functions we'd like to factor out. But writing= a package for that is quite an over-kill and might be t