Re: [R] quantmod getOptionChain Not Work

2012-04-09 Thread R. Michael Weylandt
On a Unix-alike system, if you have an svn client installed, it suffices to type svn checkout svn://svn.r-forge.r-project.org/svnroot/quantmod/ at a command prompt -- then use R CMD install on the pkg/ directory to install the new version. No idea how to do it on Windows Michael On Sun, Apr

Re: [R] quantmod getOptionChain Not Work

2012-04-08 Thread Sparks, John James
Michael, I have not had time to look at this for a while but still wanted to say thanks for looking into it and sending this solution. By the way, Jeff mentioned that the version of quantmod on the SVN (0.3.18) works for this. I tried to figure out how to download that version, but found the doc

Re: [R] quantmod getOptionChain Not Work

2012-03-23 Thread R. Michael Weylandt
Sorry about that: two small mistakes and I imagine there are a few more I've missed. This should actually work: ### library(XML) readYahooOptions <- function(Symbols, Exp, ...){ parse.expiry <- function(x) { if(is.null(x)) return(NULL) i

Re: [R] quantmod getOptionChain Not Work

2012-03-23 Thread R. Michael Weylandt
I just got around to taking a look at this, but below is a fix. It seems like yahoo finance redesigned the page and rather than reparsing all their HTML, I'll use Duncan TL's XML package to make life happier. (I loathe HTML parsing) This isn't thoroughly tested and it'll break if yahoo redesig

[R] quantmod getOptionChain Not Work

2012-03-04 Thread Sparks, John James
Dear R Helpers, I am still having trouble with the getOptionChain command in quantmod. I have the latest version of quantmod, etc. so I was under the impression that the problem was solved with updates to the package. If someone could let me know what I need to install in order to make this work