Skip to contents

write_pdf

Usage

write_pdf(
  expr,
  output_file = tempfile(fileext = ".pdf"),
  .title = NULL,
  .author = NULL,
  .date = today(),
  .classoption = "landscape",
  .papersize = "legal",
  .mainfont = "Arial",
  .geometry = "margin=0.5in",
  .fontsize = "9pt",
  fig.width = 14,
  fig.height = 7.5,
  preamble = system.file("pdf_memoir-preamble.Rmd", package = "tessireport")
)

Arguments

expr

expression to execute to create the body of the pdf'

output_file

character filename to write to, defaults to a temporary file

.title

character title for the header of the pdf; see the preamble for how this variable is passed to pandoc

.author

character author for the header of the pdf; see the preamble for how this variable is passed to pandoc

.date

character date for the header of the pdf; see the preamble for how this variable is passed to pandoc

.classoption

character tex classoption; see the preamble for how this variable is passed to pandoc

.papersize

character tex pagesize; see the preamble for how this variable is passed to pandoc

.mainfont

character tex mainfont; see the preamble for how this variable is passed to pandoc

.geometry

character tex geometry; see the preamble for how this variable is passed to pandoc

.fontsize

character tex fontsize; see the preamble for how this variable is passed to pandoc

fig.width

integer knitr figure width, passed to knitr::opts_chunk

fig.height

integer knitr figure height, passed to knitr::opts_chunk

preamble

filename of the yaml preamble used by pandoc for generating the pdf

Value

character filename of pdf file