[R] Odp: Default Working directory on windows 7?
Petr PIKAL
petr.pikal at precheza.cz
Tue Jan 4 11:09:34 CET 2011
Hi
r-help-bounces at r-project.org napsal dne 04.01.2011 10:35:23:
> 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"
Something was set incorrectly. I believe that with default setting R shall
be somewhere in Program Files directory (but you can install it to any
directory without problems). Try to remove it and reinstall if it is in
some inconvenient place.
There is one file .RData which is used as starting workspace. So make any
directory, copy this file to it, start R by double click on it and now the
new directory is working directory.
Quite useful when working on several projects.
Regards
Petr
>
>
>
> I guess I did something wrong when installing R... How to change R's
> default working directory?
>
> regards
>
> Eryk
>
> ______________________________________________
> 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