/
as.pdf.Rd
70 lines (52 loc) · 1.53 KB
/
as.pdf.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pdf.R
\name{as.pdf}
\alias{as.pdf}
\alias{as.pdf.document}
\alias{as.pdf.character}
\title{Coerce to PDF}
\usage{
as.pdf(x, ...)
\method{as.pdf}{document}(
x,
stem = "latexpdf-doc",
dir = ".",
clean = TRUE,
ignore.stdout = FALSE,
ignore.stderr = FALSE,
show.output.on.console = TRUE,
...
)
\method{as.pdf}{character}(x, stem, ...)
}
\arguments{
\item{x}{object}
\item{...}{passed arguments}
\item{stem}{the stem of a file name (no extension)}
\item{dir}{output directory}
\item{clean}{whether to delete system files after pdf creation}
\item{ignore.stdout}{passed to \code{\link{system}}}
\item{ignore.stderr}{passed to \code{\link{system}}}
\item{show.output.on.console}{passed to \code{\link{system}}}
}
\value{
the output file path (invisible)
}
\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 \code{\link{as.document.character}} and \code{\link{as.pdf.document}}.
}
\section{Methods (by class)}{
\itemize{
\item \code{as.pdf(document)}: document method
\item \code{as.pdf(character)}: character method
}}
\seealso{
\code{\link{as.pdf.character}}
\code{\link{as.pdf.document}}
\code{\link{as.pdf.data.frame}}
\code{\link{as.png}}
\code{\link{tex2pdf}}
\code{\link{viewtex}}
}