Yes, save does not check if the connection is

a) open for
b) binary
c) writes.

Three missing checks: file = pipe("cat >see", "wb") has a chance of
working.

On Fri, 2 Jul 2004 [EMAIL PROTECTED] wrote:

> This may be known, but if it is not, maybe it is helpful.
>    h<- 1:1000;  save(h, file=pipe(">see"));
> causes a Segmentation fault on my system.  The more sensible save(h, 
> file=pipe("cat >see")) hangs.  I obviously have everything wrong here, 
> my point is only about suggesting a better error trapping somewhere.

-- 
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to