R-beta: R-0.60.1 on hpux10.2
Douglas Bates
bates at stat.wisc.edu
Fri Dec 12 15:44:21 CET 1997
"Buyukisik, Osman (GEAE)" <Osman.Buyukisik at 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 at 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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list