Re: [R] setting new working directories

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Thu 04 Jan 2007 - 18:30:10 GMT

If you are working on Windows XP then downlaod the batchfiles distribution whose home page is at:

http://code.google.com/p/batchfiles/

This will provide a bunch of batch files that are useful in connection with using R.

At the Windows console this command shows you your path

   path

so place Rgui.bat from the batchfiles distribution in any of the folders listed in the path or in the folder you want to be your working directory. Then issue this command at the Windows console:

  Rgui.bat

That will start up R with the working directory set to the current directory.

It also automatically finds which version of R you are using from the registry so you don't have to do anything each time you install a new version of R (unlike other methods).

On 1/4/07, Bill Shipley <bill.shipley@usherbrooke.ca> wrote:
> Hello, and Happy New Year. My default working directory is getting very
> cluttered. I know that I should be using a different working directory for
> each project (I work in Windows), but do not know how to go about creating
> different ones and moving back and forth between them. I have read Venables
> & Ripley (Modern Applied Statistics with S-PLUS, 1994) but this seems out of
> date with respect to this topic and have searched through the documentation
> but cannot find a clear explanation for doing this. Can someone point me to
> the proper documentation for creating and using different working
> directories from within Windows (please, no comments about switching to
> UNIX...).
> Thanks.
>
> Bill Shipley
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>



R-help@stat.math.ethz.ch 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. Received on Fri Jan 05 05:37:53 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 04 Jan 2007 - 19:31:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.