[R] R_USER - in which file should I include it?
Gabor Grothendieck
ggrothendieck at gmail.com
Tue Sep 9 01:57:12 CEST 2008
Could you explain more clearly what you mean by "the same"?
Do you mean that each time you click on R 2.7.2 icon on your
desktop that running this from the R console:
getwd()
is the same directory on each startup? Isn't that already the case?
I don't think you need to set any environment variables at all. If
you don't set
any environment variables then what specifically is happening that
you don't want to happen?
On Mon, Sep 8, 2008 at 7:10 PM, Eduardo M. A. M.Mendes
<emammendes at gmail.com> wrote:
> Hello
>
> I am a newbie. I had my R upgraded from 2.7.1 to 2.7.2 and in doing so I
> decided to install all 2.7 versions under c:\program files\R\2.7 from now
> on (2.7.1 is located under .\2.7.1)
>
> Although I don't like the idea (I am running Vista), I have edited
> etc\Renviron.site to contain:
>
>
> R_USER=c:/Users/eduardo/Documents/R
> R_LIBS_USER=c:/Users/eduardo/Documents/R/win-library/2.7
>
> As far as R starting always from the same location, that is,
> c:/Users/eduardo/Documents/R, etc\Renviron.site didn't help. So I wonder
> whether someone from the list could help me to:
>
> a) force R to start always from the same location
> b) force R to install all new packages in the same location
>
>
> Many thanks
>
> Ed
>
> PS. Before sending this email, I read windows FAQ and browsed the archives
> (too many posts in the subject!).
>
> ______________________________________________
> 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