Skip to content

socket bug ??? (PR#2056)

2 messages · rwieland@zalf.de, Thomas Lumley

#
Please help me,

I use R-1.4.1 and everything works fine. But with R-1.5.1 ist does'nt work:

I have this put into a file called "socket.R"

while(TRUE){
con1 <- socketConnection(host="localhost",port=6021,server=TRUE);
source(con1);
close(con1);
}


So I can use R with:

source("socket.R")

and R answers me when I send a command to it via socket 6021. But in version 
1.5.1 it does'nt work. Have you any idea?

Many thanks

Ralf Wieland
#
On Mon, 23 Sep 2002 rwieland@zalf.de wrote:

            
You may need to add blocking=TRUE to the call.  When I do that I can
connect by telnet and send commands (although they aren't run until I
close the connection.)

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._