tangleToR               package:DynDoc               R Documentation

_A_n _S_w_e_a_v_e _d_r_i_v_e_r _t_o _r_e_t_r_i_e_v_e _c_o_d_e _c_h_u_n_k_s

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

     A driver function for 'Sweave' which will provide the user with
     code chunks from a vignette file within R.  Functionality is very
     similar to that provided by 'Stangle' except that an R object is
     returned as opposed to the chunks being written to a file.

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

     tangleToR()

_V_a_l_u_e:

     An object of type 'chunkList' is returned, which contains the code
     chunks from the vignette file.

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

     Jeff Gentry

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

     'Stangle','Sweave', 'chunkList'

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

         library(tools)
         testfile <- file.path(.path.package("tools"),
                                "Sweave", "Sweave-test-1.Rnw")
         if (file.exists(testfile))
             z <- Stangle(testfile,driver=tangleToR)

