as.pdf: Coerce to PDF

Description Usage Arguments Value Methods (by class) See Also

View source: R/pdf.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
as.pdf(x, ...)

## S3 method for class 'document'
as.pdf(
  x,
  stem = "latexpdf-doc",
  dir = ".",
  clean = TRUE,
  ignore.stdout = FALSE,
  ignore.stderr = FALSE,
  show.output.on.console = TRUE,
  ...
)

## S3 method for class '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

ignore.stdout

passed to system

ignore.stderr

passed to system

show.output.on.console

passed to system

Value

the output file path (invisible)

Methods (by class)

See Also

as.pdf.character

as.pdf.document

as.pdf.data.frame

as.png

tex2pdf

viewtex


bergsmat/latexpdf documentation built on Jan. 16, 2022, 2:14 p.m.