Skip to content

pipe and binary i/o (on Linux)

1 message · Huntsinger, Reid

#
Thanks very much, Professor Ripley. 

Reid Huntsinger





-----Original Message-----
From: ripley at stats.ox.ac.uk [mailto:ripley at stats.ox.ac.uk]
Sent: Tuesday, August 06, 2002 3:00 AM
To: Huntsinger, Reid
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] pipe and binary i/o (on Linux)
On Mon, 5 Aug 2002 ripley at stats.ox.ac.uk wrote:

            
However, gzfile should work, and bzfile *always* opens with "rb".  Here's
an example on RH7.2:
[1] 1 2 3 4
[1]  5  6  7  8  9 10
Error in pipe("gzcat testbin.gz", "rb") : unable to open connection
In addition: Warning message:
cannot open cmd `gzcat testbin.gz'

so pipe has problems, as on Linux popen does not respect "rb" (although on
other platforms it seems to).
On Linux, that is: Windows needs the "b".  I've put a full fix in R-devel.
with
directly
"rb"
I
same
were
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._