[R] setting new working directories

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Thu Jan 4 16:40:40 CET 2007


Bill Shipley 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.  


  If you make a new directory, then in it put a copy of a shortcut to R 
(actually to Rgui.exe in R's bin directory) then right click on the 
shortcut, select 'Properties', and set the 'start in' to your new 
working directory, you can browse to that directory in windows, double 
click the R shortcut, and be working in that new working directory with 
no setwd() needed.

Barry

PS oh, I mean 'folder' not 'directory' of course, this is Windows...



More information about the R-help mailing list