getVignetteCode            package:DynDoc            R Documentation

_F_u_n_c_t_i_o_n_a_l_i_t_y _t_o _m_a_n_a_g_e _c_o_d_e _c_h_u_n_k_s _f_r_o_m _a _v_i_g_n_e_t_t_e

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

     These functions allow for processing and management of vignette
     code chunks within R.  Users can directly manipulate the code
     chunks, as well as evaluate them at their option.

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

     getVignetteCode(vigPath, evalEnv = new.env())
     editVignetteCode(vigCode, pos, code)

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

 vigPath: File path of vignette file to process

 evalEnv: An environment to use for chunk evaluations

 vigCode: The 'vignetteCode' object to edit

     pos: The position of the code chunk to edit

    code: The new code chunk

_D_e_t_a_i_l_s:

     'getVignetteCode':  This function will call 'Stangle' using the
     'tangleToR' driver in order to retrieve the code chunks from the
     specified vignette file.  It will then compile the other pertinent
     information and return a new 'vignetteCode' object.

     'editVignetteCode':  This function will edit a code chunk
     contained within a 'vignetteCode' and return a new object
     representing that change.  The evaluation environment in the new
     object is a copy of the original as well, *not* the same
     environment.

_A_u_t_h_o_r(_s):

     Jeff Gentry

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

     'Sweave','vignetteCode','tangleToR'

_E_x_a_m_p_l_e_s:

