Re: [R] Communicating with R through a named pipe: display refresh problem

2008-01-22 Thread Parker Jones
> Rather, non-interactive R does not run an event loop. The usual way > around this is to use a pty, as R run from a pty is considered to be > interactive. > > (Whether a fifo and a named pipe are the same concept is moot: some OSes > have one and not the other.) > > The plan is to use thr

Re: [R] Communicating with R through a named pipe: display refresh problem

2008-01-22 Thread Prof Brian Ripley
Rather, non-interactive R does not run an event loop. The usual way around this is to use a pty, as R run from a pty is considered to be interactive. (Whether a fifo and a named pipe are the same concept is moot: some OSes have one and not the other.) The plan is to use threads in due course

[R] Communicating with R through a named pipe: display refresh problem

2008-01-22 Thread Parker Jones
Hello, On a linux system I'm trying to send commands to R through a named pipe and am *nearly* successful. I can send R commands and can plot graphs. The only problem I have is getting the x11 display to refresh - it appears to hang because of the pipe. The R server: $ mkfifo R_pipe $ R --n