From ligges at statistik.tu-dortmund.de  Thu Jul 29 14:20:19 2010
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Thu, 29 Jul 2010 14:20:19 +0200
Subject: [Rd] Telling R CMD check where to find libraries
In-Reply-To: <F54EF8F1B477CF448729593FE421F6463B43D9@HQVEVE0032.nestle.com>
References: <F54EF8F1B477CF448729593FE421F6463B43D9@HQVEVE0032.nestle.com>
Message-ID: <4C517203.9060109@statistik.tu-dortmund.de>



On 20.07.2010 17:18, Thaler, Thorn, LAUSANNE, Applied Mathematics wrote:
> Hello everybody,
>
> Currently I'm developing a library, which uses some functions from
> another package (namely plotrix). Consequently, I listed this dependency
> in the DESCRIPTION file. When I try to run "R CMD check mypackage", the
> check fails, for the library plotrix cannot be found on the system. As
> far as I understood "R CMD check" uses --vanilla implicitly, thus, no
> startup files are read. Hence, plotrix cannot be found by "R CMD check",
> since it is only installed locally (I've no admin privileges on this
> machine) and the path to the library is given in .Rprofile, which in
> turn is not read by "R CMD check".
>
> If I provide the flag "-l /path/to/site/libs", it works as expected but
> with the side effect that the test installation is carried out in this
> directory as well, which I do not like either (this directory should
> contain only stable packages and not packages which are still under
> construction). So which possibilities do I have?


Set the environment variable  R_LIBS  to point to that library.

Uwe Ligges


> BR
>
> Thorn
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Telling R CMD check where to find libraries
Uwe Ligges