[R] littler+dget+stdin -> segmentation fault

From: John Lawrence Aspden <news_at_aspden.com>
Date: Thu 04 Jan 2007 - 19:45:36 GMT


Hi, I'm trying to write a series of pipes using littler, and I get the following behaviour: Sorry if I'm just doing something witless, I'm new to R. I'm using the latest versions from debian testing (2.4.0 and 0.0.8).

$ r -e 'a<-dget(file=stdin()); print(a)' ?list(a=2)
Segmentation fault

In R itself this works:

> dget(file=stdin())

?list(a=2)
$a
[1] 2

As do (from the command line):

$ cat >foo
list(a=2)
$ r -e 'a<-dget(file="foo"); print(a)'
$a
[1] 2

and (using littler and scan instead of dget)

$ r -e 'a<-scan(file=stdin()); print(a)'

Thanks in advance,

John.

-- 
Contractor in Cambridge UK -- http://www.aspden.com

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri Jan 05 07:08:46 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 05 Jan 2007 - 00:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.