Re: [R] Local install of a contributed package under Linux

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Mon 03 Oct 2005 - 17:49:38 EST

>>>>> "Jon" == Jonathan Baron <baron@psych.upenn.edu>
>>>>> on Sun, 2 Oct 2005 21:00:41 -0400 writes:

    Jon> Try
    Jon> R CMD INSTALL -l lib pkgs

    Jon> The help file is in the utils package. I'm sure this is     Jon> documented in the manual too.

yes, and yes.

The other thing people like the original poster often "forget" is to subsequently *use* the local library {remember: a library is directory (aka "folder") of installed packages}:

Either use

       library("mvtnorm", lib.loc = <path.to.local.library>)

every time you use the locally installed package, or rather add the local library to the libraries that are always searched through. There are several ways to do so in unix-alikes: - Setting R_LIBS in (one of) the Renviron files; - Calling .libPaths() in (one of) your Rprofile (files) or in   other startup code
- <<more ways, but these are less recommended>>

Read ?Startup , ?.libPaths (and ?library) for more info.

Regards,
Martin Maechler



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 Received on Mon Oct 03 18:08:13 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:09:34 EST