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! -- View this message in context: http://r.789695.n4.nabble.com/How-download-Yahoo-Quote-tp3769563p3773622.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.