[R] Named pipe connections and stdout
mark at myatt.demon.co.uk
Mon Nov 26 11:43:52 CET 2001
Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> writes:
>Mark Myatt <mark at myatt.demon.co.uk> writes:
>> I am trying to use a named pipe to steer R from an external application.
>> Following the examples in RNEWS 1:1, I have created a simple listener:
[Code snippet deleted]
>> I tested this by steering R from a simple console (e.g. using something
>> echo "<r-command> > TESTFIFO
>> This works OK but where has stdout gone?
>With eval() in a loop, wouldn't you need a print(e)?
Putting print() in there does the trick but this produces a slightly
different output for functions that return things 'quietly' using
invisible(), printing, for example, bar positions to barplot() as well
as producing the chart rather than just producing the chart as it would
if the command where issued directly in R. Is there a way around this?
Not a big problem but one I would be interested in solving.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help