Re: [R] setting the environment variable R_LIBS

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Tue 03 Oct 2006 - 15:35:58 GMT

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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed Oct 04 01:47:07 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 03 Oct 2006 - 17:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.