[R] setting the environment variable R_LIBS

Dirk Eddelbuettel edd at debian.org
Tue Oct 3 17:35:58 CEST 2006


On 3 October 2006 at 11:19, Leeds, Mark \(IED\) wrote:
| Thanks to Peter Dalgaard , I have made some decent progress as far as
| getting R to work in linux .  I just want to set my environment variable
| R_LIBS to /u/etlfs/dev/users/leedsmar/R/library ( in linux ) so that I
| can install specific packages.  Does anyone know the syntax and in which
| file I set this variable ( .Rprofile etc ). 
| I've looked in the installation manual ( i'm mainly on pg 14 ) but I
| can't find the answers to these 2 questions. thanks.

See '?Startup', you want ~/.Renviron

~> cat ~/.Renviron
R_LIBS="~/R/site-library:/usr/lib/R/site-library"

This really is all documented.... Googling for 'Setting R_LIBS' gets several
hundreds hit, maybe you could try that ...

Dirk

-- 
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison



More information about the R-help mailing list