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

2016-12-29 Thread Christofer Bogaso
Hi David, Above problem to my system appears like due to use of older R version. I have secured a new Mac from my friend, rerun your suggestions with R version 3.3.2 (2016-10-31) Your instruction works perfectly fine there. Thanks, On Tue, Dec 27, 2016 at 8:54 AM, David Winsemius

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

2016-12-26 Thread Christofer Bogaso
Thanks David for your detailing. However still it not working for me : > library(downloader) > download("https://npscra.nsdl.co.in/download.php?path=download/=NAV_File_23122016.zip","temp.zip;) 100 996 100 9960 0917 0 0:00:01 0:00:01 --:--:-- 2028 0 0 0 --:--:--

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

2016-12-26 Thread David Winsemius
> On Dec 26, 2016, at 3:19 AM, Christofer Bogaso > wrote: > > 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 >

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

2016-12-26 Thread peter dalgaard
Things happened with HTTPS in 3.2.2, so upgrade... With 3.3.2 on Mavericks, I see > temp <- tempfile() > download.file("https://npscra.nsdl.co.in/download.php?path=download/=NAV_File_23122016.zip",temp) trying URL 'https://npscra.nsdl.co.in/download.php?path=download/=NAV_File_23122016.zip'

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

2016-12-26 Thread Christofer Bogaso
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 : > unzip("temp.zip") Warning message: In unzip("temp.zip")

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

2016-12-25 Thread David Winsemius
> On Dec 25, 2016, at 3:46 PM, Gábor Csárdi wrote: > > Your R build does not support HTTPS. > > I suggest that you use the curl package if you can. HTTP support in > base R is very limited currently. I generally use the downloader package. It sets up the call to

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

2016-12-25 Thread Gábor Csárdi
Your R build does not support HTTPS. I suggest that you use the curl package if you can. HTTP support in base R is very limited currently. Gabor On Sun, Dec 25, 2016 at 10:37 PM, Christofer Bogaso wrote: > Hi again, > > I posted this in general R thread, however

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

2016-12-25 Thread Christofer Bogaso
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