[R] R_USER - in which file should I include it?
Eduardo M. A. M.Mendes
emammendes at gmail.com
Tue Sep 9 02:11:47 CEST 2008
I am not sure whether R starts from the same dir. For instance:
a) if I double-click on R-2.7.2 icon and then issue the command getwd(), the
b) If R starts from within Tinn-R, the result is:
 "C:/Program Files/R/R-2/bin"
I want that no matter which calling R method I am using if I issue the
command getwd() (first command) the result is:
Moreover all new packages go to "C:/Users/eduardo/Documents/R/win-library"
From: Gabor Grothendieck [mailto:ggrothendieck at gmail.com]
Sent: Monday, September 08, 2008 8:57 PM
To: Eduardo M. A. M.Mendes
Cc: r-help at r-project.org
Subject: Re: [R] R_USER - in which file should I include it?
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:
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:
> 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:
> 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
> 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
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help