[Rd] Re: [R] Redirect standard input and output of R

From: Paul Roebuck <roebuck_at_odin.mdacc.tmc.edu>
Date: Thu 18 Nov 2004 - 21:04:35 EST

On Wed, 17 Nov 2004, Victor Robles wrote:

> I'm trying to write a C program that write to the standard input of R
> and read the standard output. I can perfectly read the R output, but
> I'm not able of writing anything to R.
> [SNIP C code]

Several years ago, I wrote some software that used S-plus as its back-end and Java for the front-end. I found what worked best was to add a pseudoterminal inbetween; you can use the code from "UNIX Programming Environment" to create one. The solution was later reused when a similar project used R for its back-end.



SIGSIG -- signature too long (core dumped)

R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Nov 18 21:11:21 2004

This archive was generated by hypermail 2.1.8 : Thu 18 Nov 2004 - 23:10:31 EST