Re: [Rd] Tail Call Elimination?

From: Dominick Samperi <>
Date: Sun, 17 Apr 2011 12:46:12 -0400

The Scheme-inspired function callCC may support this to some extent, but the R man page on this function is very sketchy. Examples have been posted by the author of callCC, so you might want to search the archives.


On Sun, Apr 17, 2011 at 1:34 AM, Mohit Dayal <> wrote:
> Dear R-programmers,
> I am trying to program a Newton-Raphson in R (yes, i will try GSL, not right
> now), and it would be a real boon if R had tail call elimination, so that a
> recursive program has a guarantee not to fail due to stack overflows, given
> how slow loops in R are. I did look at the documentation, but could not find
> a reason for it.
> Regards,
> Mohit Dayal
> Researcher
> Applied Statistics & Computing Lab
>        [[alternative HTML version deleted]]
> ______________________________________________
> mailing list
> mailing list Received on Sun 17 Apr 2011 - 16:49:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 18 Apr 2011 - 05:01:10 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive