Re: [R] Download and Unzip a file

2011-12-14 Thread himanshuy
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")) afte

Re: [R] Download and Unzip a file

2011-12-14 Thread R. Michael Weylandt
Do unz / unzip get the job done? Michael On Wed, Dec 14, 2011 at 8:19 AM, himanshuy wrote: > Hi > > I am trying to download and unzip a zip file from the following location. > > http://www.nseindia.com/content/historical/DERIVATIVES/2011/DEC/fo08DEC2011bhav.csv.zip > > I initially there was issu

[R] Download and Unzip a file

2011-12-14 Thread himanshuy
Hi I am trying to download and unzip a zip file from the following location. http://www.nseindia.com/content/historical/DERIVATIVES/2011/DEC/fo08DEC2011bhav.csv.zip I initially there was issue with useragent so i ran the following code options(HTTPUserAgent="Firefox/8.0.1") u = "http://www.nse