Re: R-beta: R-0.60.1 on hpux10.2

Douglas Bates (bates@stat.wisc.edu)
12 Dec 1997 14:44:21 +0000


To: "'r-help@stat.math.ethz.ch'" <r-help@stat.math.ethz.ch>
Subject: Re: R-beta: R-0.60.1 on hpux10.2
From: Douglas Bates <bates@stat.wisc.edu>
Date: 12 Dec 1997 14:44:21 +0000
In-Reply-To: "Buyukisik, Osman's message of Fri, 12 Dec 1997 09:00:16 -0500

"Buyukisik, Osman (GEAE)" <Osman.Buyukisik@ae.ge.com> writes:

> 	I tried to do "make test" , and it is failing:
> 
> 	data()
> 	Error: stack overflow

This problem seems to get many new users.  It is in the first
statement in the data function.

 > debug(data)
 > data()
 debugging in: data()
 debug: names <- c(as.character(substitute(list(...))[-1]), list)
 Browse[1]> 
 Error: stack overflow

It looks as if the problem is in the indexing of the result of the
substitute call.  The result of substitute(list(...)) has mode
"call".  Is there a need for an eval in there?

 > foo <- function(...) { substitute(list(...)) }
 > debug(foo)
 > foo()
 debugging in: foo()
 debug: substitute(list(...))
 Browse[1]> list(...)
 NULL
 Browse[1]> substitute(list(...))
 list()
 Browse[1]> 
 exiting from: foo()
 list()
 > list()
 NULL
 > list()[-1]
 NULL
 > foo <- function(...) { substitute(list(...))[-1] }
 > foo()
 > foo()

 Process R segmentation fault (core dumped) at Fri Dec 12 14:36:59 1997
-- 
Douglas Bates                            bates@stat.wisc.edu
Statistics Department                    608/262-2598
University of Wisconsin - Madison        http://www.stat.wisc.edu/~bates/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._