Re: [R] downloading web content

2013-07-23 Thread David Winsemius
On Jul 23, 2013, at 2:59 AM, Daisy Englert Duursma wrote: > Hello, > I am trying to use R to download a bunch of .csv files such as: It's are not a csv file; instead it's a zip file. Why not use the `download.file` function. This downloads it to my working directory: > download.file("http://b

Re: [R] downloading web content

2013-07-23 Thread Duncan Temple Lang
Hi Daisy Use getURLContent() rather than getURL(). The former handles binary content and this appears to be a zip file. You can write it to a file or read its contents directly in memory, e.g library(RCurl) z = getURLContent("http://biocache.ala.org.au/ws/occurrences/download?q=Banksia+eri

[R] downloading web content

2013-07-23 Thread Daisy Englert Duursma
Hello, I am trying to use R to download a bunch of .csv files such as: http://biocache.ala.org.au/ws/occurrences/download?q=Banksia+ericifolia I have tried the following and neither work: a<- getURL(" http://biocache.ala.org.au/ws/occurrences/download?q=Banksia+ericifolia";) Error in curlPerfo