[R] Sub-Directories
MacQueen, Don
macqueen1 at llnl.gov
Fri Jul 27 00:10:29 CEST 2012
I would suggest that you think in terms of several different working
directories, one for each project and located wherever you want, rather
than a "WorkingDirectory" with sub-directories.
Then, when you start R, learn how to set its working directory to a
project's directory. That will keep your R work for each project
independent of the others.
As to how you set the working directory in Windows R, there are at least
two ways:
1) use the setwd() command at the R prompt
2) use some R console menu command (and here I can't help you, because
I don't use Windows)
The documentation on the Windows console will tell you of at least one
other way...
And someone who uses Windows R will give a better answer!
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 7/26/12 2:12 PM, "Michael Grant" <michael.grant at colorado.edu> wrote:
>I've searched hard in texts, email threads, FAQs etc. and cannot find out
>how to successfully utilize sub-directories below my WorkingDirectory. I
>can create them, and create R objects within the sub-directories but (a)
>the objects() command lists ONLY the objects in the WorkingDirectory and
>none of those in the sub-directory although I can use them (if I remember
>their names!). I'm an old (and I do mean old!) UNIX user now working in
>a Windows environment. I'm sure there is a simple way to do this but I
>seem unable to discover it. I'd like to have several different
>'projects' going at the same time, with each being unrecognized by the
>other within R.
>
>Many thanks,
>Michael Grant
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list