Render a two-column cover letter to self-contained HTML or PDF. The narrow left column holds the sender's details, while the letter remains the visual foreground in the wider right column.
Usage
cover_letter(
input,
output = NULL,
options = cover_letter_options(),
envir = parent.frame()
)Arguments
- input
Path to a
.Rmdor.mdsource document.- output
Output path ending in
.htmlor.pdf. IfNULL, an HTML file is created besideinput.- options
A cover letter configuration created by
cover_letter_options().- envir
Environment in which R code in
inputis evaluated.
Examples
source <- use_cover_letter(tempfile(fileext = ".Rmd"))
cover_letter(source, tempfile(fileext = ".html"))
if (FALSE) { # \dontrun{
# PDF output requires a local Chromium-based browser
cover_letter(source, "cover-letter.pdf")
} # }