Dan Tenenbaum
2015-Aug-07 23:11 UTC
[Rd] download.file() on ftp URL fails in windows with default download method
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
Henrik Bengtsson
2015-Aug-08 09:26 UTC
[Rd] download.file() on ftp URL fails in windows with default download method
Works for me on Windows 7. Also when I explicitly set 'method' to "internal", "libcurl", "curl", "wininet" and '"wget".> sessionInfo()R version 3.2.2 beta (2015-08-04 r68843) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1 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 loaded via a namespace (and not attached): [1] tools_3.2.2 /Henrik On Sat, Aug 8, 2015 at 1:11 AM, Dan Tenenbaum <dtenenba at fredhutch.org> wrote:> 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 > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
Uwe Ligges
2015-Aug-08 22:57 UTC
[Rd] download.file() on ftp URL fails in windows with default download method
On 08.08.2015 01:11, Dan Tenenbaum wrote:> 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.Thanks for letting us know. The kot recent machine I checked with is Windows Server 2008 R2 and I have not got problems on those. Can someone else rerpoduce this on Windows Server 2012? Best, Uwe Ligges> > 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 > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >
Dan Tenenbaum
2015-Aug-08 23:02 UTC
[Rd] download.file() on ftp URL fails in windows with default download method
----- Original Message -----> From: "Uwe Ligges" <ligges at statistik.tu-dortmund.de> > To: "Dan Tenenbaum" <dtenenba at fredhutch.org>, "R-devel at r-project.org" <r-devel at r-project.org> > Sent: Saturday, August 8, 2015 3:57:34 PM > Subject: Re: [Rd] download.file() on ftp URL fails in windows with default download method > > > > On 08.08.2015 01:11, Dan Tenenbaum wrote: > > 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. > > > Thanks for letting us know. The kot recent machine I checked with is > Windows Server 2008 R2 and I have not got problems on those. Can > someone > else rerpoduce this on Windows Server 2012? >If you like I can give you temporary access (via remote desktop) to a machine in the Amazon cloud. You can also download a Vagrant box here: https://atlas.hashicorp.com/boxes/search?utf8=%E2%9C%93&sort=&provider=&q=windows+server+2012 Dan> Best, > Uwe Ligges > > > > > 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 > > > > ______________________________________________ > > R-devel at r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > > >
Maybe Matching Threads
- download.file() on ftp URL fails in windows with default download method
- download.file() on ftp URL fails in windows with default download method
- download.file() on ftp URL fails in windows with default download method
- download.file() on ftp URL fails in windows with default download method
- download.file() on ftp URL fails in windows with default download method