Learn R Programming

latexpdf (version 0.1.8)

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, ignore.stdout = FALSE, ignore.stderr = FALSE, show.output.on.console = TRUE, ... )

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

Value

the output file path (invisible)

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

ignore.stdout

passed to system

ignore.stderr

passed to system

show.output.on.console

passed to system

Methods (by class)

  • as.pdf(document): document method

  • as.pdf(character): character method

See Also

as.pdf.character

as.pdf.document

as.pdf.data.frame

as.png

tex2pdf

viewtex