> -----Original Message-----
> From: Nick.Ellis@csiro.au [mailto:Nick.Ellis@csiro.au]
>
> On the subject of connections, you can do Unix-style
> preprocessing of a file
> using a pipe in Splus6. For instance this example strips out
> double-quotes
> from the .txt file before read.table gets to it.
>
> con <- pipe("sed -e \"s/\\\\\"//g\" dredge.txt")
> dredge <- read.table(con,header=T,sep=",")
>
> It works on Windows too if you have the cygwin utilities installed.
>
I should add that I've only used pipes on Windows 2000.
As for Windows 9x, Brian Ripley says "I've found such things flaky (in
particular reading from pipes) and that seems to be due to limitations of
pipes on Windows 9x. They are implemented internally quite differently on
NT-based systems."
Has anyone else tried pipes on Windows 9x?
Nick Ellis
|