On 12-04-25 4:04 PM, Trevor Miles wrote:
Thanks Duncan.
The only .site files I have are Reviron.site and Rprofile.site, which
are both in C:\Program Files\R\R-2.14.1\etc.
My advice was about 2.15.0, but I don't remember any of this changing
recently.
Copying these files to C:\Program Files\R\R-2.14.1\etc\x64 and
C:\Program Files\R\R-2.14.1\etc\i386 makes no difference.
Sys.getenv returns R_ENVIRON = "" and R_HOME =
"C:/PROGRA~1/R/R-214~1.1". Should I set R_ENVIRON in the Windows Registry?
R_ENVIRON doesn't affect the search for the Rprofile.site file, other
than defining where to find environment variables. You want to look at
R_PROFILE, and possibly set it in your Renviron.site file.
Duncan Murdoch
> Date: Tue, 24 Apr 2012 22:50:21 -0400
> From: murdoch.dun...@gmail.com
> To: trevor.mi...@live.ca
> CC: r-help@r-project.org
> Subject: Re: [R] Rprofile.site on Windows
>
> On 12-04-24 10:43 PM, Duncan Murdoch wrote:
> > On 12-04-24 4:13 PM, Trevor Miles wrote:
> >> Hi All
> >>
> >> I am struggling to get R to read the Rprofile.site file from the
R_HOME/etc folder.
> >>
> >> I know it isn't working because I change the prompt in the
Rprofile.site file. In addition, when I run
"source('R_HOME'/etc/Rprofile.site") from the prompt, the prompt gets
changed and other environmental variables get set.
> >>
> >> Any ideas?
> >
> > I don't think the documentation has completely caught up, but that
would
> > now normally be put in R_HOME/etc/i386 or R_HOME/etc/x64, depending
> > which version you're running.
>
> Sorry, that's not quite right. It will look where R_PROFILE says to
> look, then in the spots mentioned above, but finally will look in
> R_HOME/etc if a file hasn't already been found. So maybe you have
> another Rprofile.site file that is being read instead of your new one.
>
> Duncan Murdoch
______________________________________________
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.