[R] How to specify where add-on packages should be installed

From: Ng Stanley <stanleyngkl_at_gmail.com>
Date: Tue, 11 Mar 2008 22:51:31 +0800


I am running R on a cluster. Basic packages are installed at
~/MyHome/lib64/R/library/ and add-ons packages are installed at
~/R/x86_64-redhat-linux-gnu-library/2.5/. Both directories were created by R
by default.

Problems arises when I use add-on packages, R complains that they can't be found and exit. As a hack, I copied the add-on packages to where basic packages are installed.

A) Can I specify where the add-on packages should be installed, and how ? I would like to install them at where the basic packages are. B) I even specify explicity the path of add-on packages by library(gplots, lib.loc="~/R/x86_64-redhat-linux-gnu-library/2.5/"). That still fails, what should be the correct way ?


        [[alternative HTML version deleted]]

R-help_at_r-project.org 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 Tue 11 Mar 2008 - 15:08:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 11 Mar 2008 - 20:30:20 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.

list of date sections of archive