vignetteCode-class          package:DynDoc          R Documentation

_C_l_a_s_s "_v_i_g_n_e_t_t_e_C_o_d_e"

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

     This class represents the code chunks and other related
     information from a vignette file.  It also provides for the
     ability to evaulate the code chunks in a separate environment.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("vignetteCode",
     ...)' Also, a helper function 'getVignetteCode' is provided that
     will do all of the dirty work required to retrieve a
     'vignetteCode' object from a vignette file.

_S_l_o_t_s:


     '_c_h_u_n_k_L_i_s_t': Object of class '"chunkList"' Holds the code chunks
          from the vignette file

     '_p_a_t_h': Object of class '"character"' The path of the vignette
          file 

     '_p_a_c_k_a_g_e': Object of class '"character"' The package (if
          appropriate) that the vignette came from 

     '_g_e_t_D_e_p_e_n_d_s': Object of class '"character"' Any package
          dependencies for the vignette 

     '_e_v_a_l_E_n_v': Object of class '"environment"' An environment used for
          evaulation of the code chunks.

_M_e_t_h_o_d_s:


     _s_h_o_w 'signature(object = "vignetteCode")': Displays information
          about the code contained in the object

     _c_h_u_n_k_L_i_s_t 'signature(object = "vignetteCode")': Retrieves the
          'chunkList' object.

     _c_h_u_n_k_s 'signature(object = "vignetteCode")': Retrieves the actual
          code chunks (not wrapped by the 'chunkList' class) 

     _g_e_t_D_e_p_e_n_d_s 'signature(object = "vignetteCode")': Returns the list
          of package dependencies for this vignette

     _e_v_a_l_C_h_u_n_k 'signature(object = "vignetteCode",pos="numeric")': Will
          evaulate the specified code chunk in the 'evalEnv'
          environment

     _e_v_a_l_E_n_v 'signature(object = "vignetteCode")': Returns the
          evaluation environment

     _g_e_t_C_h_u_n_k 'signature(object = "vignetteCode",pos="numeric")':
          Returns the 'codeChunk' object representing the specified
          code chunk position 

     _n_u_m_C_h_u_n_k_s 'signature(object = "vignetteCode")': Returns the number
          of chunks in the object 

     _v_i_g_P_a_c_k_a_g_e 'signature(object = "vignetteCode")': Returns the
          package the vignette is a part of 

     _p_a_t_h 'signature(object = "vignetteCode")': Returns the local file
          path to the vignette 

     _s_e_t_C_h_u_n_k<- 'signature(object = "vignetteCode",pos="numeric",
          value="character")': Resets the code chunk specified by 'pos'
          to contain the code specified  by 'value' 

     _s_u_m_m_a_r_y 'signature(object = "vignetteCode")': A less verbose
          output of information then with 'show' 

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

     Jeff Gentry

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

     'Sweave', 'getVignetteCode', 'editVignetteCode', 'chunkList'

