[R] sourcing the content of directories

Jason Turner jasont at indigoindustrial.co.nz
Tue Oct 29 06:23:57 CET 2002

On Tue, Oct 29, 2002 at 12:42:22PM +0100, Jan Malte Wiener wrote:
> hi,
> is there a way to source all R-files that reside in a given directory 
> with a single R-call ?
> greetinx jan


Given this question, and the previous one about environment variables and
file paths, it looks like you really should set your project up as a 
full R package.  While this might be a painful transition under CVS (never
have changed file paths mid-project, but I hear it's not trivial), 
it should be worth it to eliminate headaches like cross-platform file
sourcing, and should also ease documentation writing and storage.

See the "Writing R Extensions" manual (R-exts.pdf).  You might also 
want to get the book "S Programming", another good one by Venables 
and Ripley.  And *definately* check out the function package.skeleton,
which sets up template files for you (very slick, and helps me remember
details I might normally overlook).


Indigo Industrial Controls Ltd.
jasont at indigoindustrial.co.nz
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