Dear fellow R users, I would very much like to see an example of read/write connection (open = "r+" ) for e.g. pipe() or any other R connection. I have a standalone program which accepts input from stdin, performs some processing and returns the results on stdout. Is it possible at all to open a connection to that program, write to it (i.e. to stdin of that process) and read back the results ?
As a silly example, imagine the following use of the Unix function head: zz <- pipe(" head ", open ="r+"); cat(rnorm(10), file = zz); Error in cat(rnorm(10), file = zz) : cannot write to this connection While I am not surprised that this does not work, I would love to know a solution to this general problem. Thanks Markus [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.