[R] QuantMod and XML

Hasan Diwan hasan.diwan at gmail.com
Sun Nov 8 00:41:39 CET 2015


Bob,

On 7 November 2015 at 15:27, Robert Sherry <rsherry8 at comcast.net> wrote:

>
> I am trying to use the package quantmod to get option quotes in R.
> Therefore, I executed the following two commands:
>         library ("quantmod" )
>         getOptionChain("AAPL")
> The first one worked but the second one produced the following error
> message:
>         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:
>         https://cran.r-project.org/web/packages/XML/XML.pdf
> indicates to me that it does exist.
>

It also shows its webpage to be at http://www.omegahat.org/RSXML. On the
root of the site -- http://www.omegahat.org -- the installation command is
given as install.packages(packageName, repos = "http://www.omegahat.org/R").
So perhaps, you should try install.packages("XML", repos = "
http://www.omegahat.org/R") or install.packages("RSXML", repos = "
http://www.omegahat.org/R") as one of those two should get you what you
want. Hope that helped... -- H

>
> I am hoping somebody can tell me what I am doing wrong.
>
> Thanks
> Bob
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.




-- 
OpenPGP: https://hasan.d8u.us/gpg.key
Sent from my mobile device
Envoyé de mon portable

	[[alternative HTML version deleted]]



More information about the R-help mailing list