[R] R:how to separate stuff?

Friedrich Leisch
Fri, 16 Jul 1999 11:14:41 -0000

>>>>> On Fri, 16 Jul 1999 12:48:52 +0200 (MET DST),
>>>>> Agustin Lobo (AL) wrote:

AL> Thanks for your help on moving files from
AL> S+ to R and on attaching directories.

AL> If attaching directories is NOT possible in R,
AL> is there any other way to separate
AL> objects into different folders or something similar?
AL> For example, to keep user functions for multivariate
AL> analysis in a different "place" than user functions on
AL> time series, or to keep data objects of project_1
AL> in a different place than data objects of project_2.

The preferred way of doing this is creating a seperate package for
these, see help(library) for details.

AL> Also, where does R put the objects that are saved?
AL> in .Rdata? Could not be possible to have different .Rdata
AL> (.Rdata_1, .Rdata_2...) ?

R creates the .RData file in the current working directory, so the
easiest way is to create a directory for each project and simply
start R there.

.fritz