I had installed de "gplots" package and then I loaded the library but the package did not work. I recieved a message like this:> install.packages("gplots", dependencies = TRUE)Installing package(s) into ‘/home/fpiston/R/x86_64-pc-linux-gnu-library/2.14’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done trying URL 'http://cran.es.r-project.org/src/contrib/gplots_2.10.1.tar.gz' Content type 'application/x-gzip' length 226290 bytes (220 Kb) opened URL =================================================downloaded 220 Kb * installing *source* package ‘gplots’ ... ** package ‘gplots’ successfully unpacked and MD5 sums checked ** R ** data ** inst ** preparing package for lazy loading Error : package ‘caTools’ was built before R 2.10.0: please re-install it ERROR: lazy loading failed for package ‘gplots’ * removing ‘/home/fpiston/R/x86_64-pc-linux-gnu-library/2.14/gplots’ The downloaded packages are in ‘/tmp/Rtmp2ooBQr/downloaded_packages’ Warning message: In install.packages("gplots", dependencies = TRUE) : installation of package ‘gplots’ had non-zero exit status> install.packages("caTools", dependencies = TRUE)Installing package(s) into ‘/home/fpiston/R/x86_64-pc-linux-gnu-library/2.14’ (as ‘lib’ is unspecified) trying URL 'http://cran.es.r-project.org/src/contrib/caTools_1.12.tar.gz' Content type 'application/x-gzip' length 61894 bytes (60 Kb) opened URL =================================================downloaded 60 Kb * installing *source* package ‘caTools’ ... ** Creating default NAMESPACE file ** libs g++ -I/usr/share/R/include -fpic -O3 -pipe -g -c Gif2R.cpp -o Gif2R.o g++ -I/usr/share/R/include -fpic -O3 -pipe -g -c GifTools.cpp -o GifTools.o gcc -std=gnu99 -I/usr/share/R/include -fpic -O3 -pipe -g -c runfunc.c -o runfunc.o g++ -shared -o caTools.so Gif2R.o GifTools.o runfunc.o -L/usr/lib64/R/lib -lR installing to /home/fpiston/R/x86_64-pc-linux-gnu-library/2.14/caTools/libs ** R ** preparing package for lazy loading Error : package ‘bitops’ was built before R 2.10.0: please re-install it ERROR: lazy loading failed for package ‘caTools’ * removing ‘/home/fpiston/R/x86_64-pc-linux-gnu-library/2.14/caTools’ The downloaded packages are in ‘/tmp/Rtmp2ooBQr/downloaded_packages’ Warning message: In install.packages("caTools", dependencies = TRUE) : installation of package ‘caTools’ had non-zero exit status> library(caTools, pos=4)Error: package ‘caTools’ was built before R 2.10.0: please re-install it> library(gplots, pos=4)Loading required package: gtools Loading required package: gdata Attaching package: ‘gdata’ The following object(s) are masked from ‘package:stats’: nobs The following object(s) are masked from ‘package:utils’: object.size Loading required package: caTools Error: package ‘caTools’ was built before R 2.10.0: please re-install it -- Fernando Piston Piston fpiston@gmail.com [[alternative HTML version deleted]]
Hi Fernando, You have to reinstall package 'bitops' too. Regards, Pascal ----- Mail original ----- De?: Fernando Pist?n <fpiston at gmail.com> ??: r-help at r-project.org Cc?: Envoy? le : Mardi 13 mars 2012 16h10 Objet?: [R] "gplots" packages does not work I had installed de "gplots" package and then I loaded the library but the package did not work.? I recieved a message like this:> install.packages("gplots", dependencies = TRUE)Installing package(s) into ?/home/fpiston/R/x86_64-pc-linux-gnu-library/2.14? (as ?lib? is unspecified) --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done trying URL 'http://cran.es.r-project.org/src/contrib/gplots_2.10.1.tar.gz' Content type 'application/x-gzip' length 226290 bytes (220 Kb) opened URL =================================================downloaded 220 Kb * installing *source* package ?gplots? ... ** package ?gplots? successfully unpacked and MD5 sums checked ** R ** data ** inst ** preparing package for lazy loading Error : package ?caTools? was built before R 2.10.0: please re-install it ERROR: lazy loading failed for package ?gplots? * removing ?/home/fpiston/R/x86_64-pc-linux-gnu-library/2.14/gplots? The downloaded packages are in ?/tmp/Rtmp2ooBQr/downloaded_packages? Warning message: In install.packages("gplots", dependencies = TRUE) : ? installation of package ?gplots? had non-zero exit status> install.packages("caTools", dependencies = TRUE)Installing package(s) into ?/home/fpiston/R/x86_64-pc-linux-gnu-library/2.14? (as ?lib? is unspecified) trying URL 'http://cran.es.r-project.org/src/contrib/caTools_1.12.tar.gz' Content type 'application/x-gzip' length 61894 bytes (60 Kb) opened URL =================================================downloaded 60 Kb * installing *source* package ?caTools? ... ** Creating default NAMESPACE file ** libs g++ -I/usr/share/R/include? ? ? -fpic? -O3 -pipe? -g -c Gif2R.cpp -o Gif2R.o g++ -I/usr/share/R/include? ? ? -fpic? -O3 -pipe? -g -c GifTools.cpp -o GifTools.o gcc -std=gnu99 -I/usr/share/R/include? ? ? -fpic? -O3 -pipe? -g -c runfunc.c -o runfunc.o g++ -shared -o caTools.so Gif2R.o GifTools.o runfunc.o -L/usr/lib64/R/lib -lR installing to /home/fpiston/R/x86_64-pc-linux-gnu-library/2.14/caTools/libs ** R ** preparing package for lazy loading Error : package ?bitops? was built before R 2.10.0: please re-install it ERROR: lazy loading failed for package ?caTools? * removing ?/home/fpiston/R/x86_64-pc-linux-gnu-library/2.14/caTools? The downloaded packages are in ?/tmp/Rtmp2ooBQr/downloaded_packages? Warning message: In install.packages("caTools", dependencies = TRUE) : ? installation of package ?caTools? had non-zero exit status> library(caTools, pos=4)Error: package ?caTools? was built before R 2.10.0: please re-install it> library(gplots, pos=4)Loading required package: gtools Loading required package: gdata Attaching package: ?gdata? The following object(s) are masked from ?package:stats?: ? ? nobs The following object(s) are masked from ?package:utils?: ? ? object.size Loading required package: caTools Error: package ?caTools? was built before R 2.10.0: please re-install it -- Fernando Piston Piston fpiston at gmail.com ??? [[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.
Hi, It does work -- it seems like that at some point you've upgraded your R packages in an incorrect manner. Specifically, it looks as if you've installed a new version of R and just copied over libraries from a previous (pre R-2.10.x) version. Look at this error message during the install: On Tue, Mar 13, 2012 at 3:10 AM, Fernando Pist?n <fpiston at gmail.com> wrote: [snip]> * installing *source* package ?gplots? ... > ** package ?gplots? successfully unpacked and MD5 sums checked > ** R > ** data > ** inst > ** preparing package for lazy loading > Error : package ?caTools? was built before R 2.10.0: please re-install it[snip] Your gplots install immediately aborts after that. In order to try automagically remedy the situation, you might try something like: R> update.packages(checkBuild=TRUE, ask=FALSE) After that's done, try re-installing gplots. HTH, -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology ?| Memorial Sloan-Kettering Cancer Center ?| Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact