findGlobals            package:codetools            R Documentation

_F_i_n_d _G_l_o_b_a_l _F_u_n_c_t_i_o_n_s _a_n_d _V_a_r_i_a_b_l_e_s _U_s_e_d _b_y _a _C_l_o_s_u_r_e

_D_e_s_c_r_i_p_t_i_o_n:

     Finds global functions and variables used by a closure.

_U_s_a_g_e:

     findGlobals(fun, merge = TRUE) 

_A_r_g_u_m_e_n_t_s:

     fun: closure.

   merge: logical

_D_e_t_a_i_l_s:

     The result is an approximation. R semantics only allow variables
     that might be local to be identified (and event that assumes no
     use of 'assign' and 'rm').

_V_a_l_u_e:

     Character vector if 'merge' is true; otherwise, a list with
     'functions' and 'variables' components.

_A_u_t_h_o_r(_s):

     Luke Tierney

_E_x_a_m_p_l_e_s:

     findGlobals(findGlobals)
     findGlobals(findGlobals, merge = FALSE)

