as.png: Coerce to PNG

Description Usage Arguments Methods (by class) See Also

View source: R/png.R

Description

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

Coerces to PNG from document. Makes a system call to 'pdflatex', converts resulting file to PNG. Extra arguments passed to as.pdf.document and ghostconvert.

Coerces character to document, PDF, and then PNG. Extra arguments passed to as.document.character and as.png.document.

Usage

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

## S3 method for class 'document'
as.png(
  x,
  stem = "latexpdf-doc",
  dir = ".",
  clean = TRUE,
  replace = TRUE,
  multipage = TRUE,
  ...
)

## S3 method for class 'character'
as.png(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 PNG creation

replace

whether to delete the pdf file

multipage

whether to convert multiple pages of the PDF

Methods (by class)

See Also

as.png.character

as.png.document

as.png.data.frame

as.pdf

as.pdf.document

ghostconvert

tex2png

viewtex

ghostconvert


latexpdf documentation built on Aug. 18, 2021, 1:07 a.m.