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 <[email protected]> wrote:

From: W Eryk Wolski <[email protected]>
Subject: [R] Default Working directory on windows 7?
To: [email protected]
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

______________________________________________
[email protected] 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]]

______________________________________________
[email protected] 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