

   Recall {base}                                R Documentation

   RReeccuurrssiivvee CCaalllliinngg

   DDeessccrriippttiioonn::

        `Recall' is used as a placeholder for the name of the
        function in which it is called.  It allows the defini-
        tion of recursive functions which still work after
        being renamed, see example below.

   UUssaaggee::

        Recall(...)

   AArrgguummeennttss::

        ...: all the arguments to be passed.

   SSeeee AAllssoo::

        `do.call' and `call'.

   EExxaammpplleess::

        ## A trivial (but inefficient!) example:
        fib <- function(n) if(n<=2) {if(n>=0) 1 else 0} else Recall(n-1) + Recall(n-2)
        fibonacci <- .Alias(fib) ## renaming wouldn't work without Recall
        fibonacci(10) # 55

