[R] Class mode text isopen can read can write - too many open connections

Joshua Wiley jwiley.psych at gmail.com
Sun Oct 17 18:08:34 CEST 2010


Hi,

Is it a public URL (i.e., that we can try downloading from too)?  Do
you get the same error now matter where/what you download or just from
that one place?  Finally, if you are using Windows > XP, are you
running R as an administrator (or very sure that the log file or
whatever else you are creating is not being written to some place that
Windows will try to restrict such as in Programs)?

Cheers,

Josh

On Sun, Oct 17, 2010 at 8:57 AM, Santosh Srinivas
<santosh.srinivas at gmail.com> wrote:
> 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
>>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/



More information about the R-help mailing list