[R] Download and Unzip a file
himanshuy
himanshu.pro at gmail.com
Thu Dec 15 03:14:25 CET 2011
I tried using unzip but it gave the following error "Invalid zip name
argument"
options(HTTPUserAgent="Firefox/8.0.1")
u =
"http://www.nseindia.com/content/historical/DERIVATIVES/2011/DEC/fo08DEC2011bhav.csv.zip"
o = getURLContent(u, verbose = TRUE, useragent = getOption("HTTPUserAgent"))
after this I ran the unzip
unzip(o , files = NULL, list = FALSE, overwrite = TRUE, junkpaths = FALSE,
exdir = "D:\\", unzip = "internal", setTimes = FALSE)
but i got this error
Error in unzip(o, files = NULL, list = FALSE, overwrite = TRUE, junkpaths =
FALSE, :
invalid zip name argument
Thanks
Himanshu Y
--
View this message in context: http://r.789695.n4.nabble.com/Download-and-Unzip-a-file-tp4194895p4198145.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list