beamer_presentation(toc = FALSE, slide_level = NULL, incremental = FALSE, fig_width = 10, fig_height = 7, fig_crop = TRUE, fig_caption = TRUE, dev = "pdf", df_print = "default", 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 Text
TRUE
to automatically apply the pdfcrop
utility
(if available) to pdf figuresTRUE
to render figures with captionsprint.data.frame
. The "kable" method uses the
knitr::kable
function. The "tibble" method uses
the tibble package to print a summary of the data frame. In addition
to the named methods you can also pass an arbitrary function to be used
for printing data frames. You can disable the df_print behavior entirely
by setting the option rmarkdown.df_print
to FALSE
.NULL
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 DataCamp Workspace