Dear R People: I'm trying to build a package and am stuck on the last part; I keep getting "there is no library". Here are my statements: 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) * using session charset: UTF-8 * checking for file 'RcmdrPlugin.qual/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'RcmdrPlugin.qual' version '0.1.0' * checking package dependencies ... OK * checking if this is a source package ... OK * checking for executable files ... OK * checking whether package 'RcmdrPlugin.qual' can be installed ... OK * checking package directory ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking for unstated dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... NOTE xbara: no visible binding for global variable ?top? xbara : onOK: no visible binding for global variable ?newDataSet? xbara : onOK: no visible global function definition for ?newDataSet? xbara: no visible binding for global variable ?buttonsFrame? * checking Rd files ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * creating RcmdrPlugin.qual-Ex.R ... OK * checking examples ... OK * creating RcmdrPlugin.qual-manual.tex ... OK * checking RcmdrPlugin.qual-manual.tex using pdflatex ... OK erin at erin-laptop:~/Desktop/R-2.9.1/bin$ cd RcmdrPlugin.qual erin at erin-laptop:~/Desktop/R-2.9.1/bin/RcmdrPlugin.qual$ gedit DESCRIPTION erin at erin-laptop:~/Desktop/R-2.9.1/bin/RcmdrPlugin.qual$ cd .. 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) * using session charset: UTF-8 * checking for file 'RcmdrPlugin.qual/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'RcmdrPlugin.qual' version '0.1.0' * checking package dependencies ... OK * checking if this is a source package ... OK * checking for executable files ... OK * checking whether package 'RcmdrPlugin.qual' can be installed ... OK * checking package directory ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking for unstated dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... NOTE xbara: no visible binding for global variable ?top? xbara : onOK: no visible binding for global variable ?newDataSet? xbara : onOK: no visible global function definition for ?newDataSet? xbara: no visible binding for global variable ?buttonsFrame? * checking Rd files ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * creating RcmdrPlugin.qual-Ex.R ... OK * checking examples ... OK * creating RcmdrPlugin.qual-manual.tex ... OK * checking RcmdrPlugin.qual-manual.tex using pdflatex ... OK erin at erin-laptop:~/Desktop/R-2.9.1/bin$ R CMD build RcmdrPlugin.qual * checking for file 'RcmdrPlugin.qual/DESCRIPTION' ... OK * preparing 'RcmdrPlugin.qual': * checking DESCRIPTION meta-information ... OK * checking whether 'INDEX' is up-to-date ... NO * use '--force' to overwrite the existing 'INDEX' * removing junk files * checking for LF line-endings in source and make files * checking for empty or unneeded directories * building 'RcmdrPlugin.qual_0.1.0.tar.gz' 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' * Installing *source* package 'RcmdrPlugin.qual' ... ** R ** inst ** preparing package for lazy loading Loading required package: Rcmdr Loading required package: tcltk Loading Tcl/Tk interface ... done The Commander GUI is launched only in interactive sessions Attaching package: 'Rcmdr' The following object(s) are masked from package:tcltk : tclvalue Loading required package: rgl Loading required package: abind Loading required package: MASS ** help >>> Building/Updating help pages for package 'RcmdrPlugin.qual' Formats: text html latex example RcmdrPlugin.qual-internal text html latex RcmdrPlugin.qual-package text html latex ** building package indices ... * DONE (RcmdrPlugin.qual) erin at erin-laptop:~/Desktop/R-2.9.1/bin$ ./R R version 2.9.1 (2009-06-26) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. [Previously saved workspace restored]> library(RcmdrPlugin.qual)Error in library(RcmdrPlugin.qual) : there is no package called 'RcmdrPlugin.qual'>I'm sure that there is something simple that I'm not seeing. Thanks in advance for any help. Sincerely, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodgess at gmail.com
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$ ./Rwhich 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