Skip to content
Prev 8153 / 15076 Next

download.file suggestion: if(OSX){ use curl}

download.file() and file() are two entirely independent facilities. file()/url() etc. are connections - and none of them supports https - not even on the Mac. In contrast, download.file() is simply a utility to download a file - it has nothing to do with connections (except for the fact that it may choose to use connections to accomplish the task - or not). You could equally well just call curl yourself -- and in fact that is probably the closest to what you want:

f=pipe("curl -s -S https://rforge.net")
read.table(f)
close(f)

Finally, you may want to have a look at RCurl and getURLContent() and alike.

Cheers,
Simon
On Jul 7, 2011, at 10:33 AM, Timothy Bates wrote: