[R] Rprofile.site on Windows

Duncan Murdoch murdoch.duncan at gmail.com
Wed Apr 25 04:50:21 CEST 2012


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



More information about the R-help mailing list