Render a Markdown or R Markdown resume to a self-contained HTML document or
to PDF through a headless Chromium-based browser. The output format is
inferred from the extension of output.
Usage
resume(
input,
output = NULL,
options = resume_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 resume configuration created by
resume_options().- envir
Environment in which R code in
inputis evaluated.
Details
Document metadata and typographic settings may be supplied in the YAML
header. Values in options take precedence over YAML. See resume_options()
for function-call configuration and use_resume() for a complete starter.
Examples
source <- use_resume(tempfile(fileext = ".Rmd"))
resume(source, tempfile(fileext = ".html"))
if (FALSE) { # \dontrun{
# PDF output requires a local Chromium-based browser
resume(source, "resume.pdf")
# Embed local font files
resume(
source,
options = resume_options(
font_files = c(
regular = "fonts/MySerif-Regular.woff2",
italic = "fonts/MySerif-Italic.woff2",
bold = "fonts/MySerif-Bold.woff2"
),
font_scale = 0.96,
ligatures = FALSE
)
)
} # }