OUTPUT BUFFER:
Hello ! I'm trying to connect my Tcl application to R. As suggested to me in an other post, I went to use Rserve. Unfortunatly, there is no Tcl client. I try to set up a simple Tcl one : proc readR {} { while {[gets $::connR l] >= 0} { puts ">> $l" flush $::connR if {[eof $::connR]} { puts "stopping ! eof ...." break } update idletasks } return } set connR [socket localhost 6311] fconfigure $connR -buffering line -blocking 0 fileevent $connR readable readR readR puts $connR "print('toto')" I can get the "RservxxxxxAP1" server name send by Rserve, but then the connection failed (eof=1). I tried to play around with "blocking" and "buffering" but that doesn't work. How should I set up the Tcl connection to Rserve ? Or is there special Rserve config to set up ?{ Many thanks in advance ! Luc