An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120313/00ec2b44/attachment.pl>
"gplots" packages does not work
8 messages · Fernando Pistón, Fernando Pistón Pistón, Steve Lianoglou +2 more
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
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120313/f8453ca6/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120313/2fb2a4b3/attachment.pl>
Hi Fernando, 2012/3/13 Fernando Pist?n Pist?n <fpiston at ias.csic.es>:
Hi Steve, The suggestion of Pacal worked ok, Do you think it is neccesary to "update.packages"? Can I "update.packages" although the "gplots" work ok?
I don't see Pascal's suggestion, so I guess I don't know what you did (maybe just updated catTools by itself?) In general, it is "good form" to not use packages built w/ older version of R in your current R install. Whether or not you want to follow that recommended practice, I'll leave up to you. -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
Hi Fernando, To me, it is a good idea to regularly check the availability of update for installed packages, using 'update.packages()'. Regards, Pascal ----- Mail original ----- De?: Fernando Pist?n Pist?n <fpiston at ias.csic.es> ??: Steve Lianoglou <mailinglist.honeypot at gmail.com> Cc?: r-help at r-project.org Envoy? le : Mardi 13 mars 2012 17h06 Objet?: Re: [R] "gplots" packages does not work Hi Steve, The suggestion of Pacal worked ok, Do you think it is neccesary to "update.packages"? Can I "update.packages" although the "gplots" work ok? On Tue, Mar 13, 2012 at 8:38 AM, Steve Lianoglou <
mailinglist.honeypot at gmail.com> wrote:
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
Dr. Fernando Pist?n Pist?n Instituto de Agricultura Sostenible (CSIC) Alameda del Obispo s/n 14080-Cordoba Spain ??? [[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.
On 13/03/2012 08:33, Pascal Oettli wrote:
Hi Fernando, To me, it is a good idea to regularly check the availability of update for installed packages, using 'update.packages()'.
Specifically, update.packages(checkBuilt=TRUE) to overcome the wrong-R-version issue (although the package installation could be so corrupted that this cannot find the version ...). That is the default (these days) for the Windows GUI's menu.
Regards, Pascal
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595