[R] building a package

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Tue Aug 11 00:15:02 CEST 2009


On Mon, Aug 10, 2009 at 10:24 PM, Erin Hodgess<erinm.hodgess at gmail.com> wrote:
> Dear R People:
>
> I'm trying to build a package and am stuck on the last part; I keep
> getting "there is no library".

 You seem to have more than one version of R on the go - the one in
your system $PATH:

> erin at erin-laptop:~/Desktop/R-2.9.1/bin$ R CMD check RcmdrPlugin.qual
> * checking for working pdflatex ... OK
> * using log directory '/home/erin/Desktop/R-2.9.1/bin/RcmdrPlugin.qual.Rcheck'
> * using R version 2.8.1 (2008-12-22)

> erin at erin-laptop:~/Desktop/R-2.9.1/bin$ R CMD check RcmdrPlugin.qual
> * checking for working pdflatex ... OK
> * using log directory '/home/erin/Desktop/R-2.9.1/bin/RcmdrPlugin.qual.Rcheck'
> * using R version 2.8.1 (2008-12-22)

> erin at erin-laptop:~/Desktop/R-2.9.1/bin$ R CMD INSTALL
> RcmdrPlugin.qual_0.1.0.tar.gz
> * Installing to library '/home/erin/R/i486-pc-linux-gnu-library/2.8'

 - all of which seem to be 2.8. Then the one you seem to have in
~/Desktop/R-2.9.1 which you start thus:

> erin at erin-laptop:~/Desktop/R-2.9.1/bin$ ./R

 which starts 2.9.1:

> R version 2.9.1 (2009-06-26)
> Copyright (C) 2009 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0

>> library(RcmdrPlugin.qual)
> Error in library(RcmdrPlugin.qual) :
>  there is no package called 'RcmdrPlugin.qual'

 But your install was to the 2.8 version! Just do the build and
install steps with ./R, or test it with R.

Barry




More information about the R-help mailing list