Learn R Programming

latexpdf (version 0.1.8)

as.png: Coerce to PNG

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

as.png(x, ...)

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

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

  • as.png(document): document method

  • as.png(character): character method

See Also

as.png.character

as.png.document

as.png.data.frame

as.pdf

as.pdf.document

ghostconvert

tex2png

viewtex

ghostconvert