[R] [R-sig-hpc] recursion depth limitations

Suzen, Mehmet suzen at acm.org
Fri Dec 14 12:13:16 CET 2012


On 13 December 2012 23:21, Rui Barradas <ruipbarradas at sapo.pt> wrote:
> But it does, each recursive call will load another copy of the function, and
> another copy of the variables used.
> In fact, the cost can become quite large since everything is loaded in
> memory again.
>
> Hope this helps,
>

Many thanks for the replies.

What about tail-recursion?  I have seen that there were discussions
about this:

https://stat.ethz.ch/pipermail/r-help/2006-April/102873.html

Since it was 6 years ago, maybe now things are little different.

Best
-m



Mehmet



More information about the R-help mailing list