Re: [Rd] R windows crash (PR#9426)

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu 21 Dec 2006 - 08:51:31 GMT

On Thu, 21 Dec 2006, Peter Dalgaard wrote:

[...]

> This seems reproducible on Linux, except that it goes into an infinite
> loop. The lm call seems to be the real culprit:
>
> > testfun <- function(aa=aa) return(aa)
> > testfun()
> Error in testfun() : recursive default argument reference
> > testfun <- function(aa=aa) lm(x~y,data=aa)
> > testfun()
> (*poof*)

The difference is in argument evaluation between closures and internal functions (c() in my example, return() in yours).

-- 
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-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu Dec 21 23:56:52 2006

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 Thu 21 Dec 2006 - 21:31:03 GMT.

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