Learn R Programming

latexpdf (version 0.1.6)

as.pdf: Coerce to PDF

Description

Coerces to PDF. Generic, with methods for character, document, and data.frame.

Coerces to PDF from document. Makes a system call to 'pdflatex'. Extra arguments ignored.

Coerces character to document and then to PDF. Extra arguments passed to as.document.character and as.pdf.document.

Usage

as.pdf(x, ...)

# S3 method for document as.pdf(x, stem = "latexpdf-doc", dir = ".", clean = TRUE, ...)

# S3 method for character as.pdf(x, stem, ...)

Arguments

x

object

...

passed arguments

stem

the stem of a file name (no extension)

dir

output directory

clean

whether to delete system files after pdf creation

Value

the output file path (invisible)

Methods (by class)

  • document: document method

  • character: character method

See Also

as.pdf.character

as.pdf.document

as.pdf.data.frame

as.png

tex2pdf

viewtex