Jeroen Ooms
2014-Aug-11 15:13 UTC
[R-sig-Fedora] Renviron.site and Rprofile.site in Fedora
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?
Rolf Turner
2014-Aug-11 22:41 UTC
[R-sig-Fedora] Renviron.site and Rprofile.site in Fedora
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