codetools             package:codetools             R Documentation

_L_o_w _L_e_v_e_l _C_o_d_e _A_n_a_l_y_s_i_s _T_o_o_l_s _f_o_r _R

_D_e_s_c_r_i_p_t_i_o_n:

     These functions provide an some tools for analysing R code. 
     Mainly indented to support the other tools in this package and
     byte code compilation.

_U_s_a_g_e:

     collectLocals(e, collect) 
     collectUsage(fun, name = "<anonymous>", ...) 
     constantFold(e, env = NULL, fail = NULL) 
     findFuncLocals(formals, body) 
     findLocals(e, envir = .BaseEnv) 
     findLocalsList(elist, envir = .BaseEnv)
     flattenAssignment(e) 
     getAssignedVar(e) 
     isConstantValue(v, w) 
     makeCodeWalker(..., handler, call, leaf) 
     makeLocalsCollector(..., leaf, handler, isLocal, exit, collect) 
     makeUsageCollector(fun, ..., name, enterLocal, enterGlobal, enterInternal,
                        startCollectLocals, finishCollectLocals, warn,
                        signal)
     walkCode(e, w = makeCodeWalker()) 

_A_r_g_u_m_e_n_t_s:

       e: R expression.

   elist: list of R expressions.

       v: R object.

     fun: closure.

 formals: formal arguments of a closure.

    body: body of a closure.

    name: character.

     env: character.

   envir: environment.

       w: code walker.

     ...: extra elements for code walker.

 collect: function.

    fail: function.

 handler: function.

    call: function.

    leaf: function.

 isLocal: function.

    exit: function.

enterLocal: function.

enterGlobal: function.

enterInternal: function.

startCollectLocals: function.

finishCollectLocals: function.

    warn: function.

  signal: function.

_D_e_t_a_i_l_s:

_A_u_t_h_o_r(_s):

     Luke Tierney

_E_x_a_m_p_l_e_s:

