Suppose your working "R" directory is

C:\My Working Directory

I hope now that you have installed the R, you must be having "R ICON" on your 
desktop.

Right click on this icon, then click on Properties. Once that box is opened, 
you will find a tab called "Start in". There within the " " type C:\My Working 
Directory. So it should look like "C:\My Working Directory"

Then click on OK.

So whenever you execute "R" henceforth, this will remain your working directory 
till the time you change it using above process.


I hope I have addressed your query. Of course others may be having different 
efficient methods to do it.

HTH

Amy



--- On Tue, 1/4/11, W Eryk Wolski <wewol...@gmail.com> wrote:

From: W Eryk Wolski <wewol...@gmail.com>
Subject: [R] Default Working directory on windows 7?
To: r-help@r-project.org
Date: Tuesday, January 4, 2011, 9:35 AM

Hi,

Just installed R on a new Windows 7 machine (as admin).


I feel quite uncomfortable knowing that the default WD when starting R is:

> getwd()
[1] "C:/Windows/system32"



I guess I did something wrong when installing R... How to change R's
default working directory?

regards

Eryk

______________________________________________
R-help@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.









      


      
        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to