R-beta: directory of functions

Richard Lammers (lammers@edac.sr.unh.edu)
Fri, 20 Jun 1997 10:28:28 -0400 (EDT)

Date: Fri, 20 Jun 1997 10:28:28 -0400 (EDT)
From: Richard Lammers <lammers@edac.sr.unh.edu>
To: r-help@stat.math.ethz.ch
Subject: R-beta: directory of functions
Message-Id: <Pine.OSF.3.95.970620100019.15525f-100000@edac.sr.unh.edu>

Is there any way to create a directory of functions in R?

In the past, when using S, I have used attach() to point to a
directory holding a set of functions.  This does not seem to work in R:

> attach(".Functions")
Error: attach only works for lists and data frames

Is there any way to keep the data separate from functions?

I suppose one approach would be to store the functions as text files and
source() them from .Rprofile

Is this the way most R users are currently dealing with this?



Richard Lammers                         Phone:   (603) 862-4699
Complex System Research Center            Fax:   (603) 862-0188
University of New Hampshire             email:   Richard.Lammers@unh.edu
Durham, NH  03824 (USA)                   URL:   TBA

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@stat.math.ethz.ch