From ligges@statistik.uni-dortmund.de  Thu Sep 12 16:02:30 2002
From: ligges@statistik.uni-dortmund.de (ligges@statistik.uni-dortmund.de)
Date: Thu, 12 Sep 2002 17:02:30 +0200 (MET DST)
Subject: (PR#2005) R_HOME/etc/Renviron.site not interpreted on windows
Message-ID: <200209121502.RAA25179@pubhealth.ku.dk>

ligges@statistik.uni-dortmund.de wrote:
> 
> Was on R-help:
> 
>   Subject: Re: [R] .Renviron and Renviron.site (on Windows XP)
>   Date: Thu, 11 Sep 2002
>   From: "James Rogers" <jrogers@cantatapharm.com>
> 
> At least on the windows version of R the file
>   ...../etc/Renviron.site
> won't be interpreted as mentioned in, e.g., ?.Renviron.
> 
> Happens on R-1.5.1, WinXP (James), as well as on R-1.6.0-beta.


process_site_Renviron() doesn't seem to be called anywhere in the
windows sources. Fix:

.../src/gnuwin32/system.c obviously needs (diff'ed to R-1.6.0 beta
(2002-09-10)):

591a592
>     process_site_Renviron();
698a700
>     process_site_Renviron();



In that case we have to change  .../src/unix/sys-common.c  (?) as well,
because R_Home seems to be empty at this point on Windows. I was not
able to figure out why, maybe Duncan has a better solution?
A quick hack:

729a730
>     char *getRHOME();
731a733
>     if(!R_Home) R_Home = getRHOME();


Uwe Ligges

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


(PR#2005) R_HOME/etc/Renviron.site not interpreted on windows
ligges@statistik.uni-dortmund.de