[Rd] [linux] connection never times out
According to the download.file manual the timeout of a connection can be set using options(timeout=10). This seems to work as expected on windows, but on linux the connection does not timeout. I reproduced the problem both 0on R-2.13 on Ubuntu and on R-2.12.1 on CentOS, but not in Windows. > options(timeout=5) > download.file("http://123.123.123.123/bla";, dest=tempfile()) I am running Ubuntu 11.04 with the R binaries from CRAN: > sessionInfo() R version 2.13.0 (2011-04-13) Platform: i686-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8LC_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 [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base > -- View this message in context: http://r.789695.n4.nabble.com/linux-connection-never-times-out-tp3662088p3662088.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Randomness not due to seed
I am working on a reproducible computing platform for which I would like to be able to _exactly_ reproduce an R object. However, I am experiencing unexpected randomness in some calculations. I have a hard time finding out exactly how it occurs. The code below illustrates the issue. mylm1 <- lm(dist~speed, data=cars); mylm2 <- lm(dist~speed, data=cars); identical(mylm1, mylm2); #TRUE makelm <- function(){ return(lm(dist~speed, data=cars)); } mylm1 <- makelm(); mylm2 <- makelm(); identical(mylm1, mylm2); #FALSE When inspecting both objects there seem to be some rounding differences. Setting a seed does not make a difference. Is there any way I can remove this randomness and exactly reproduce the object every time? -- View this message in context: http://r.789695.n4.nabble.com/Randomness-not-due-to-seed-tp3678082p3678082.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel