to_pdf | R Documentation |
Render slides as a PDF file. Requires a local installation of Chrome.
If you set complex_slides = TRUE
or partial_slides = TRUE
, you will also
need to install the chromote and pdftools packages.
to_pdf(
from,
to = NULL,
complex_slides = FALSE,
partial_slides = FALSE,
delay = 1,
keep_intermediates = NULL
)
from |
Path to an |
to |
The name of the output |
complex_slides |
For "complex" slides (e.g. slides with panelsets or
other html widgets or advanced features), set |
partial_slides |
Should partial (continuation) slides be included in the
output? If |
delay |
Seconds of delay between advancing to and printing a new slide.
Only used if |
keep_intermediates |
Should we keep the intermediate HTML file? Only
relevant if the |
Slides are rendered as a .pdf
file.
with_example("slides.Rmd", requires_chrome = TRUE, {
# Render pdf from Rmd, html, or direct URL
to_pdf("slides.Rmd")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.