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)