----- Original Message ----- From: Yumin [via R] To: Yumin Sent: Saturday, August 27, 2011 3:32 PM Subject: Re: How download Yahoo Quote?
Hi Michael: I tried to simplify the code, but still failed. 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") } It says: Warning message: In open.connection(con) : too many redirects, aborting ... The more, it doesn't accept " library(quantmod)" and says: Error in library(quantmod) : there is no package called 'quantmod' Please help me! ------------------------------------------------------------------------------ If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/How-download-Yahoo-Quote-tp3769563p3773622.html To unsubscribe from How download Yahoo Quote?, click here. -- View this message in context: http://r.789695.n4.nabble.com/How-download-Yahoo-Quote-tp3769563p3773703.html Sent from the R help mailing list archive at Nabble.com. [[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.