What is wrong with the getSymbols("IBM") command I originally suggested to you?
Michael On Sat, Aug 27, 2011 at 6:23 PM, Yumin <zpx...@gmail.com> wrote: > Hi Michael: > > I installed: install. packages("quantmod") and now it accept > library(quantmod) sentence. BUT after input: > > * con <- url("http://quote.yahoo.com") > if(!inherits(try(open(con), silent = TRUE), > "try-error")) > { > close(con) > > x <- get.hist.quote(instrument = "ibm", quote = > c("Cl", > > "Vol")) > plot(x, main = "International Business Machines > Corp") > }* > > The result is the same: > > * Warning message: > In open.connection(con) : too many redirects, aborting > ...* > > > ps: the 1st line of my code is: > library(quantmod) > > -- > View this message in context: > http://r.789695.n4.nabble.com/How-download-Yahoo-Quote-tp3769563p3773771.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@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. > [[alternative HTML version deleted]] ______________________________________________ R-help@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.