Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-27 Thread Martin Morgan
R-devel r69197 returns appropriate errors for the cases below; I know of a few rough edges - ftp error codes are not reported correctly - download.file creates destfile before discovering that http fails, leaving an empty file on disk and am happy to hear of more. Martin On 08/27/2015

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-27 Thread Kevin Ushey
Thanks for looking into this so promptly! Should users expect the behaviour to be congruent across all of the supported external programs (curl, wget) as well? E.g. URL - http://cran.rstudio.org/no/such/file/here.tar.gz; download - function(file, method, ...)

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-27 Thread Martin Maechler
DM == Duncan Murdoch murdoch.dun...@gmail.com on Wed, 26 Aug 2015 19:07:23 -0400 writes: DM On 26/08/2015 6:04 PM, Jeroen Ooms wrote: On Tue, Aug 25, 2015 at 10:33 PM, Martin Morgan mtmor...@fredhutch.org wrote: actually I don't know that it does -- it addresses the

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-27 Thread Martin Morgan
On 08/27/2015 08:16 AM, Martin Maechler wrote: DM == Duncan Murdoch murdoch.dun...@gmail.com on Wed, 26 Aug 2015 19:07:23 -0400 writes: DM On 26/08/2015 6:04 PM, Jeroen Ooms wrote: On Tue, Aug 25, 2015 at 10:33 PM, Martin Morgan mtmor...@fredhutch.org wrote:

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-26 Thread Jeroen Ooms
On Tue, Aug 25, 2015 at 10:33 PM, Martin Morgan mtmor...@fredhutch.org wrote: actually I don't know that it does -- it addresses the symptom but I think there should be an error from libcurl on the 403 / 404 rather than from read.dcf on error page... Indeed, the only correct behavior is to

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-26 Thread Duncan Murdoch
On 26/08/2015 6:04 PM, Jeroen Ooms wrote: On Tue, Aug 25, 2015 at 10:33 PM, Martin Morgan mtmor...@fredhutch.org wrote: actually I don't know that it does -- it addresses the symptom but I think there should be an error from libcurl on the 403 / 404 rather than from read.dcf on error

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Kevin Ushey
Hi Martin, Indeed it does (and I should have confirmed myself with R-patched and R-devel before posting...) Thanks, and sorry for the noise. Kevin On Tue, Aug 25, 2015, 13:11 Martin Morgan mtmor...@fredhutch.org wrote: On 08/25/2015 12:54 PM, Kevin Ushey wrote: Hi all, The following

[Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Kevin Ushey
Hi all, The following fails for me (on OS X, although I imagine it's the same on other platforms using libcurl): options(download.file.method = libcurl) options(repos = c(CRAN = https://cran.rstudio.com/;, CRANextra = http://www.stats.ox.ac.uk/pub/RWin;)) install.packages(lattice) ##

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Martin Morgan
On 08/25/2015 12:54 PM, Kevin Ushey wrote: Hi all, The following fails for me (on OS X, although I imagine it's the same on other platforms using libcurl): options(download.file.method = libcurl) options(repos = c(CRAN = https://cran.rstudio.com/;, CRANextra =

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Kevin Ushey
(final post, sorry to be spamming everyone all day...) As kindly pointed out by Martin off-list, I was in fact using an old version of R-devel (it looks like the binaries provided at http://r.research.att.com/ are currently stale -- although the page lists r69167 as the current version, the