Forum: help


RE: Cannot install quantmod [ Reply ] By: Brian Peterson on 2012-09-06 10:18 | [forum:17135] |
I suspect that your problem is with the package 'sandwhich', not quantmod. It looks like it uses quantmod functions, but is interfereing with your upgrade. So, I suggest first that you disable any package loading in your .Rprofile file. This will cause problems always when trying to install packages, as packages that are loaded by default cannot be re-installed. On an Ubuntu machine that happens to still have R 2.15.0, I get: > install.packages("quantmod", repos="http://R-Forge.R-project.org") Installing package(s) into ‘/usr/local/lib/R/site-library’ (as ‘lib’ is unspecified) trying URL 'http://R-Forge.R-project.org/src/contrib/quantmod_0.3-20.tar.gz' Content type 'application/x-gzip' length 124252 bytes (121 Kb) opened URL ================================================== downloaded 121 Kb * installing *source* package ‘quantmod’ ... ** R ** demo ** preparing package for lazy loading Creating a generic function for ‘summary’ from package ‘base’ in package ‘quantmod’ ** help *** installing help indices ** building package indices ** testing if installed package can be loaded * DONE (quantmod) The downloaded source packages are in ‘/tmp/Rtmp89CIMK/downloaded_packages’ So, works for me. but the error you're seeing is related to 'sandwich' being loaded and interfering with the loading of a new quantmod. Regards, - Brian |
Cannot install quantmod [ Reply ] By: Charles Evans on 2012-09-06 03:26 | [forum:17133] |
This is in reference to quantmod on Ubuntu. A couple years ago, I used your outstanding package a lot, while working on my PhD in Finance. It was an absolute godsend! Recently, I migrated to Ubuntu, and managed to install most of the packages that I need for my current research, but when I try to install quantmod, I get the following. I have searched online for fixes, but I have not found any. Does anyone here know if this problem has been addressed? If not, can you suggest anything? Any help is greatly appreciated. Yours, Charles Evans R version 2.15.0 (2012-03-30) Platform: x86_64-pc-linux-gnu (64-bit) install.packages('quantmod') Loading required package: zoo Attaching package: ‘zoo’ The following object(s) are masked from ‘package:base’: as.Date, as.Date.numeric Loading required package: sandwich * installing *source* package ‘quantmod’ ... ** package ‘quantmod’ successfully unpacked and MD5 sums checked ** R ** demo ** preparing package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded Loading required package: zoo Attaching package: ‘zoo’ The following object(s) are masked from ‘package:base’: as.Date, as.Date.numeric Loading required package: sandwich Error : Function found when exporting methods from the namespace ‘quantmod’ which is not S4 generic: ‘summary’ Error: loading failed Execution halted ERROR: loading failed * removing ‘/home/cwe/R/x86_64-pc-linux-gnu-library/2.15/quantmod’ * restoring previous ‘/home/cwe/R/x86_64-pc-linux-gnu-library/2.15/quantmod’ The downloaded source packages are in '/tmp/Rtmp5myKYS/downloaded_packages' |