Re: [R] Environment variable defined in .bashrc is not recognized by R

2014-04-01 Thread Hadley Wickham
Use .Renviron Hadley On Tue, Apr 1, 2014 at 2:33 AM, Luca Cerone wrote: > Thanks, > effectively I was using RStudio (on an Ubuntu 12.04 machine). > > Is there any other way to make the variable available to Rstudio? > Now I have simply written the path manually, but I like the idea of > having a

Re: [R] Environment variable defined in .bashrc is not recognized by R

2014-04-01 Thread Rainer M Krug
Luca Cerone writes: > Thanks, > effectively I was using RStudio (on an Ubuntu 12.04 machine). > > Is there any other way to make the variable available to Rstudio? > Now I have simply written the path manually, but I like the idea of > having a system-wide variable :) Check out http://www.gn

Re: [R] Environment variable defined in .bashrc is not recognized by R

2014-04-01 Thread Luca Cerone
Thanks, effectively I was using RStudio (on an Ubuntu 12.04 machine). Is there any other way to make the variable available to Rstudio? Now I have simply written the path manually, but I like the idea of having a system-wide variable :) Thanks for your help, Rainer! On Tue, Apr 1, 2014 at 11:25

Re: [R] Environment variable defined in .bashrc is not recognized by R

2014-04-01 Thread Rainer M Krug
Luca Cerone writes: > Dear all, > in my .bashrc file I have set the environment variable R_HISTFILE like this: > > export R_HISTFILE="$HOME/.Rhistory" > > I then use it in my .Rprofile to have R writing all the history in a > single file, rather than on a per directory basis. > However this does

[R] Environment variable defined in .bashrc is not recognized by R

2014-04-01 Thread Luca Cerone
Dear all, in my .bashrc file I have set the environment variable R_HISTFILE like this: export R_HISTFILE="$HOME/.Rhistory" I then use it in my .Rprofile to have R writing all the history in a single file, rather than on a per directory basis. However this doesn't work becaus R_HISTFILE is not re