
Converts TEX to PDF. tex2pdf
accepts the file names of TEX fragments. It reads those fragments, wraps them like documents and makes PDF files.
tex2pdf(x, stem = NULL, dir = NULL, clean = TRUE, onefile = FALSE, ...)
vector of file names
the stem of a file name (no extension)
output directory
whether to delete system files after PDF creation
whether to combine TEX snippets into a single file
passed to as.pdf.character
invisible vector of paths to created files
# NOT RUN {
file <- file.path(tempdir(),'test.tex')
writeLines(as.ltable(head(Theoph)), file)
tex2pdf(file)
# }
Run the code above in your browser using DataLab