I'm still having a lot of difficulty with run-program.  I'm
communicating with R (a language for statistics and graphics), but so
far, I can only get one-way communication running.

The current call I use to start R is:

        (setf *r* (run-program *r-location*
                               '("--no-save")
                               :pty t
                               :wait nil
                               :input t)

And I write to a R by doing a write-line and a finish-output (or
force-output) on (process-pty *r*).

This works fine for sending stuff to R, but I don't know how to read
from it.  A post by Eric Marsden in a previous thread suggests that
when I set :pty to t, I want to set all three of :input, :output and
:error to t.  However, if I do this, then writing to (process-pty *r*)
no longer works --- my plotting commands don't cause plots to appear,
and sending a "quit()" down the pipe no longer makes R quit.

Any suggestions are appreciated.

Cheers,

rif


Reply via email to