Primitive                package:base                R Documentation

_C_a_l_l _a ``_P_r_i_m_i_t_i_v_e'' _I_n_t_e_r_n_a_l _F_u_n_c_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     `.Primitive' returns an entry point to a ``primitive'' (internally
     implemented) function.

     The advantage of `.Primitive' over `.Internal' functions is the
     potential efficiency of argument passing.

_U_s_a_g_e:

     .Primitive(name)

_A_r_g_u_m_e_n_t_s:

    name: name of the R function.

_S_e_e _A_l_s_o:

     `.Internal'.

_E_x_a_m_p_l_e_s:

     mysqrt <- .Primitive("sqrt")
     c
     .Internal # this one *must* be primitive!
     get("if") # just `if' or `print(if)' are not syntactically ok.

