beamer_presentation(toc = FALSE, slide_level = NULL, incremental = FALSE, fig_width = 10, fig_height = 7, fig_crop = TRUE, fig_caption = TRUE, dev = "pdf", theme = "default", colortheme = "default", fonttheme = "default", highlight = "default", template = "default", keep_tex = FALSE, latex_engine = "pdflatex", citation_package = c("none", "natbib", "biblatex"), includes = NULL, md_extensions = NULL, pandoc_args = NULL)TRUE to include a table of contents in the output (only
level 1 headers will be included in the table of contents).slide_level.TRUE to render slide bullets incrementally. Note
that if you want to reverse the default incremental behavior for an
individual bullet you can precede it with >. For example:
> - Bullet TextTRUE to automatically apply the pdfcrop utility
(if available) to pdf figuresTRUE to render figures with captionsNULL to prevent syntax highlighting.NULL to use pandoc's
built-in template; pass a path to use a custom template that you've
created. See the documentation on
pandoc online documentation
for details on creating custom templates.natbib
or biblatex. Use none if neither package is to be used.includes function).rmarkdown_format for
additional details.render
beamer_presentation format.Creating Beamer output from R Markdown requires that LaTeX be installed.
R Markdown documents can have optional metadata that is used to generate a document header that includes the title, author, and date. For more details see the documentation on R Markdown metadata.
R Markdown documents also support citations. You can find more information on the markdown syntax for citations in the Bibliographies and Citations article in the online documentation.
## Not run:
#
# library(rmarkdown)
#
# # simple invocation
# render("pres.Rmd", beamer_presentation())
#
# # specify an option for incremental rendering
# render("pres.Rmd", beamer_presentation(incremental = TRUE))
# ## End(Not run)
Run the code above in your browser using DataLab