Recall                 package:base                 R Documentation

_R_e_c_u_r_s_i_v_e _C_a_l_l_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     Recall(...)

_A_r_g_u_m_e_n_t_s:

     ...: all the arguments to be passed.

_S_e_e _A_l_s_o:

     `do.call' and `call'.

_E_x_a_m_p_l_e_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

