[R] Class mode text isopen can read can write - too many open connections
Santosh Srinivas
santosh.srinivas at gmail.com
Sun Oct 17 17:57:41 CEST 2010
I am downloading data files using RCurl and everything works except till
some limit is hit and says too many connections open
It is a simple download using URL and I am writing the status in a tryCatch
block to a log file.
showConnections()
description class mode text isopen can read can write
> showConnections(all=T)
description class mode text isopen can read can write
0 "stdin" "terminal" "r" "text" "opened" "yes" "no"
1 "stdout" "terminal" "w" "text" "opened" "no" "yes"
2 "stderr" "terminal" "w" "text" "opened" "no" "yes"
I tried closeAllConnections() but of no use.
When I try to delete a downloaded file . It says cannot be done because
"folder is open in R GUI front end"
Any idea how to resolve this?
> sessionInfo()
R version 2.11.1 (2010-05-31)
i386-pc-mingw32
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United
Kingdom.1252 LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RCurl_1.4-4.1 bitops_1.0-4.1 zoo_1.6-4
loaded via a namespace (and not attached):
[1] grid_2.11.1 lattice_0.19-11 tools_2.11.1
>
More information about the R-help
mailing list