Learn R Programming

latexpdf (version 0.1.8)

viewtex: Render and View TEX Files

Description

Renders and TEX files as PDF and opens them for viewing.

Usage

viewtex(x, delete = TRUE, latency = 1, png = FALSE, ...)

Arguments

x

vector of file names

delete

whether temporary pdf (_doc.pdf) should persist

latency

how many seconds to wait before deleting temporary PDF,

png

view as png instead of pdf

...

passed to tex2pdf

See Also

tex2pdf

tex2png

as.pdf.character

Examples

Run this code
file <- file.path(tempdir(),'test.tex')
writeLines(as.ltable(head(Theoph)), file)
if (FALSE) {
viewtex(file)
viewtex(file, png = TRUE, gs_cmd = 'mgs')
}

Run the code above in your browser using DataLab