[R] QuantMod and XML

Robert Sherry rsherry8 at comcast.net
Sun Nov 8 00:27:30 CET 2015

I am trying to use the package quantmod to get option quotes in R. 
Therefore, I executed the following two commands:
         library ("quantmod" )
The first one worked but the second one produced the following error 
         Error in getOptionChain.yahoo(Symbols = "AAPL") :
         package:“XML”cannot be loaded.
Therefore, I am thinking I need to install the package XML. To do so, I 
executed the following command:
         install.packages( "XML" )
However, that command failed because it could not find the package XML. 
The following URL:
indicates to me that it does exist.

I am hoping somebody can tell me what I am doing wrong.


More information about the R-help mailing list