Skip to content
Prev 22418 / 398502 Next

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.