[Rd] download.file crashes on OSX

From: Seth Falcon <sfalcon_at_fhcrc.org>
Date: Sun 30 Jul 2006 - 03:23:15 GMT


I'm seeing a 'memory not mapped' crash on OSX (10.4.7) with R-devel (r38715) when calling download.file() with a URL that doesn't exist.

Here is what reproduces it for me:

    u404 <- "http://bioconductor.org/packages/doesnotexist.aaaa.3"     f <- "output.u404.txt"
    download.file(u404, f)     

    trying URL 'http://bioconductor.org/packages/doesnotexist.aaaa.3'     

And here is a patch that resolves this for me. I'm pretty sure the context should be closed after the query is made as to its status, but maybe I'm missing something...

+ seth

Index: src/modules/internet/internet.c

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun Jul 30 14:36:54 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 30 Jul 2006 - 14:27:00 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.