From dtenenba at fredhutch.org  Sat Aug  8 01:11:44 2015
From: dtenenba at fredhutch.org (Dan Tenenbaum)
Date: Fri, 7 Aug 2015 16:11:44 -0700 (PDT)
Subject: [Rd] download.file() on ftp URL fails in windows with default
 download method
In-Reply-To: <1401901239.539287.1438988941536.JavaMail.root@fredhutch.org>
Message-ID: <1156858325.539321.1438989104859.JavaMail.root@fredhutch.org>

Hi,

> url <- "ftp://ftp.ncbi.nlm.nih.gov/genomes/ASSEMBLY_REPORTS/All/GCF_000001405.13.assembly.txt"
> download.file(url, tempfile())
trying URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/ASSEMBLY_REPORTS/All/GCF_000001405.13.assembly.txt'
Error in download.file(url, tempfile()) :
  cannot open URL 'ftp://ftp.ncbi.nlm.nih.gov/genomes/ASSEMBLY_REPORTS/All/GCF_000001405.13.assembly.txt'
In addition: Warning message:
In download.file(url, tempfile()) : InternetOpenUrl failed: ''

If I set method="curl" it works fine. This was on R-3.2.2-beta (sessionInfo() below) but I got the same results in R-3.2.1 and R-devel. 

This does not happen on Windows Server 2008 but it happens on Windows Server 2012.

Dan

> sessionInfo()
R version 3.2.2 beta (2015-08-05 r68859)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server 2012 x64 (build 9200)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base



[Rd] download.file() on ftp URL fails in windows with default download method
Dan Tenenbaum