[R-SIG-Mac] Download data from Internet contained in a Zip file

peter dalgaard pdalgd at gmail.com
Mon Dec 26 00:40:46 CET 2016


Which R version is this?

-pd

> On 25 Dec 2016, at 23:37 , Christofer Bogaso <bogaso.christofer at gmail.com> wrote:
> 
> Hi again,
> 
> I posted this in general R thread, however it is suggested this group
> since I am using MAC OS 10.7.5.
> 
> I was following the instruction available in
> "http://stackoverflow.com/questions/3053833/using-r-to-download-zipped-data-file-extract-and-import-data"
> to download data from Internet contained in a zip file from the
> address :
> 
> https://npscra.nsdl.co.in/download.php?path=download/&filename=NAV_File_23122016.zip
> 
> However when I tried to follow the instruction I am facing below error :
> 
>> temp <- tempfile()
>> download.file("https://npscra.nsdl.co.in/download.php?path=download/&filename=NAV_File_23122016.zip",temp)
> Error in download.file("https://npscra.nsdl.co.in/download.php?path=download/&filename=NAV_File_23122016.zip",
> :
>  unsupported URL scheme
> 
> Can someone here please tell me what went wrong in above?
> 
> Highly appreciate your feedback.
> 
> Thanks for your time.
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-SIG-Mac mailing list