SweaveSyntConv package:utils R Documentation _C_o_n_v_e_r_t _S_w_e_a_v_e _S_y_n_t_a_x _D_e_s_c_r_i_p_t_i_o_n: This function converts the syntax of files in 'Sweave' format to another Sweave syntax definition. _U_s_a_g_e: SweaveSyntConv(file, syntax, output = NULL) _A_r_g_u_m_e_n_t_s: file: Name of Sweave source file. syntax: An object of class 'SweaveSyntax' or a character string with its name giving the target syntax to which the file is converted. output: Name of output file, default is to remove the extension from the input file and to add the default extension of the target syntax. Any directory names in 'file' are also removed such that the output is created in the current working directory. _A_u_t_h_o_r(_s): Friedrich Leisch _R_e_f_e_r_e_n_c_e_s: Friedrich Leisch: Sweave User Manual, 2008 _S_e_e _A_l_s_o: 'RweaveLatex', 'Rtangle' _E_x_a_m_p_l_e_s: testfile <- system.file("Sweave", "Sweave-test-1.Rnw", package = "utils") ## convert the file to latex syntax SweaveSyntConv(testfile, SweaveSyntaxLatex) ## and run it through Sweave Sweave("Sweave-test-1.Stex")