SweaveSyntConv {utils} | R Documentation |
This function converts the syntax of files in Sweave
format to another Sweave syntax definition.
SweaveSyntConv(file, syntax, output = NULL)
file |
Name of Sweave source file. |
syntax |
An object of class |
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 |
Friedrich Leisch
Friedrich Leisch: Sweave User Manual, 2008
http://www.stat.uni-muenchen.de/~leisch/Sweave
RweaveLatex
, Rtangle
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")