[R] close connection, closeAllConnections()

From: mel <mel_at_altk.com>
Date: Wed, 09 Jan 2008 16:21:02 +0100


close connection, closeAllConnections()

Hello,

For windows2000 and windowsXP, R.2.6.1
I have a little problem with the following lines

> socketConnection('127.0.0.1', port=7496, server=F, blocking=F,
open='wb', encoding='');

        description              class               mode 
text             opened           can read
"->127.0.0.1:7496"           "socket"               "wb" 
"binary"           "opened"              "yes"
          can write
              "yes"

> showConnections(all=TRUE)
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"
3 "->127.0.0.1:7496" "socket" "wb" "binary" "opened" "yes" "yes"
> closeAllConnections()

Erreur dans close.socket(getConnection(set[i])) : invalid 'socket' argument

with the previous R version,
calling closeAllConnections() did nicely close connection #3 ... but now, this works no more.

I'm missing something and would be very thankful for any infos/pointer about this little worry.
(I believe some changes were planned with the connection functions in R.2.6.1, could it be that ?)
Thanks
Vincent



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. Received on Wed 09 Jan 2008 - 15:23:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Jan 2008 - 15:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive