to_pptx | R Documentation |
Render slides as a .pptx
file. The function renders to the PDF and
then converts it into PNG images that are inserted on each slide in the
PowerPoint file.
to_pptx(
from,
to = NULL,
density = 100,
slides = "all",
complex_slides = FALSE,
partial_slides = FALSE,
delay = 1,
keep_intermediates = FALSE,
ratio = NULL
)
from |
Path to an |
to |
Name of the output |
density |
Resolution of the resulting PNGs in each slide file. Defaults
to |
slides |
A numeric or integer vector of the slide number(s) to include
in the pptx, or one of |
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 files used to
render the final output? The default is |
ratio |
PowerPoint slides ratio. Possible values are
|
Slides are rendered as a pptx file.
with_example("slides.Rmd", requires_chrome = TRUE, requires_packages = "officer", {
# Render pptx from Rmd, html, pdf, or direct URL
to_pptx("slides.Rmd")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.