[Rd] [linux] connection never times out

Jeroen Ooms jeroen.ooms at stat.ucla.edu
Tue Jul 12 22:22:51 CEST 2011

> Can you please verify the behaviour is still the same in a recent R-devel or
> at least R-2.13.1? And that there was no other already answered request on
> R-help or R-devel re. timeouts?

The code below is R 2.13.1. It shows that the timeout time is more
than 3 minutes, although it was set to 5 seconds.

> options(timeout=5)
> system.time(download.file("", dest=tempfile()))
trying URL ''
Error in download.file("", dest = tempfile()) :
  cannot open URL ''
In addition: Warning message:
In download.file("", dest = tempfile()) :
  unable to connect to '' on port 80.
Timing stopped at: 0 0 189.375
> sessionInfo()
R version 2.13.1 (2011-07-08)
Platform: i686-pc-linux-gnu (32-bit)

 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C

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

More information about the R-devel mailing list