[R-sig-Fedora] Renviron.site and Rprofile.site in Fedora

Rolf Turner r.turner at auckland.ac.nz
Tue Aug 12 00:41:26 CEST 2014


On 12/08/14 03:13, Jeroen Ooms wrote:
> On Debian/Ubuntu, system wide environment variables and options are
> set in respectively /etc/R/Renviron.site and /etc/R/Rprofile.site.
> These files are automatically created when r-base is installed, and do
> not get overwritten during an upgrade.
>
> On Fedora, there is no /etc/R directory. What is the recommended place
> to define system wide environment variables and options on a Fedora
> system?

Looking at ?Rprofile (from the R command line) tells me that the default 
locations are:

   R_HOME/etc/Renviron.site

and

   R_HOME/etc/Rprofile.site

You can find out where "R_HOME" is, if you don't know, by typing

   R.home()

from the R command line.

I guess these locations *would* get overwritten in an upgrade.  To 
imitate the Debian/Ubuntu system you could simply create the directory 
/etc/R and set the environment variables R_ENVIRON and R_PROFILE 
appropriately in your .bashrc or .cshrc file.

cheers,

Rolf Turner

-- 
Rolf Turner
Technical Editor ANZJS



More information about the R-SIG-Fedora mailing list