Skip to content
Prev 11888 / 15075 Next

Download data from Internet contained in a Zip file

Hi David et al,

Thanks for showing the pointers. With your approach, I see the
"temp.zip" file in my working folder.

However still I could not extract the data within it. I tried using
unzip() function, however not really going through :
Warning message:
In unzip("temp.zip") : error 1 in extracting from zip file

When I try to access the link
"https://npscra.nsdl.co.in/download.php?path=download/&filename=NAV_File_23122016.zip"
manually, then download the zip file and then unzip it, I get a file
called "NAV_File_23122016.out". Which next I open in excel and get all
the data.

I was just trying to perform similar task, however through R, so that
I can load data automatically directly from Web.

Any Idea please. I am using below version of R (I know this is quite
old version, however I am not currently in a position to upgrade my
Macbook)
$platform
[1] "x86_64-apple-darwin10.8.0"

$arch
[1] "x86_64"

$os
[1] "darwin10.8.0"

$system
[1] "x86_64, darwin10.8.0"

$status
[1] ""

$major
[1] "3"

$minor
[1] "2.1"

$year
[1] "2015"

$month
[1] "06"

$day
[1] "18"

$`svn rev`
[1] "68531"

$language
[1] "R"

$version.string
[1] "R version 3.2.1 (2015-06-18)"

$nickname
[1] "World-Famous Astronaut"
On Mon, Dec 26, 2016 at 7:18 AM, David Winsemius <dwinsemius at comcast.net> wrote: