Re: [R] Seg Fault on R 1.8.1 under linux

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat 03 Jul 2004 - 02:50:20 EST


Yes, save does not check if the connection is

  1. open for
  2. binary
  3. writes.

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

On Fri, 2 Jul 2004 ivo_welch-rstat8783@mailblocks.com 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,                  ripley@stats.ox.ac.uk
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

______________________________________________
R-help@stat.math.ethz.ch 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
Received on Sat Jul 03 02:53:42 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:39 EST