build_all | R Documentation |
Build slides to multiple outputs. Options are "html"
, "social"
"pdf"
,
"png"
, "gif"
, "mp4"
, and "pptx"
. See each individual build_*()
function for details about each output type.
build_all(
input,
include = c("html", "social", "pdf", "png", "gif", "mp4", "pptx"),
exclude = NULL,
complex_slides = FALSE,
partial_slides = FALSE,
delay = 1,
density = 100,
slides = "all",
fps = 1
)
input |
Path to an |
include |
A vector of the different output types to build. Options are
|
exclude |
A vector of the different output types to NOT build. Options
are |
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 |
density |
Resolution of the resulting PNGs in each slide file. Defaults
to |
slides |
A numeric or integer vector of the slide number(s) to render
as PNG files , or one of |
fps |
Frames per second of the resulting |
Builds slides to multiple output formats.
if (interactive()) {
# Both of these build html and pdf outputs
# (PDF outputs require Google Chrome for {pagedown})
with_example("slides.Rmd", requires_chrome = TRUE, {
build_all("slides.Rmd", include = c("html", "pdf"))
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.