Shower is a vanilla HTML/CSS/JS presentation engine.
shower_presentation(theme = c("ribbon", "material"), ratio = c("4x3",
"16x10"), katex = FALSE, incremental = FALSE, fig_width = 8,
fig_height = 4.9, fig_retina = if (!fig_caption) 2, fig_caption = FALSE,
smart = TRUE, self_contained = TRUE, highlight = "default",
template = "default", css = NULL, includes = NULL, keep_md = FALSE,
lib_dir = NULL, pandoc_args = NULL, ...)
Theme to use. The default theme is ‘ribbon’. The ‘material’ theme is an alternative.
Slide ratio to use. It can be ‘4x3’ or ‘16x10’.
Whether to include KaTeX support. It is turned off by default. See https://github.com/Khan/KaTeX for more about KaTeX.
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
Default width (in inches) for figures
Default width (in inches) for figures
Scaling to perform for retina displays (defaults to 2, which
currently works for all widely used retina displays). Set to NULL
to
prevent retina scaling. Note that this will always be NULL
when
keep_md
is specified (this is because fig_retina
relies on
outputting HTML directly into the markdown document).
TRUE
to render figures with captions
Produce typographically correct output, converting straight quotes to curly quotes, --- to em-dashes, -- to en-dashes, and ... to ellipses.
Produce a standalone HTML file with no external dependencies, using data: URIs to incorporate the contents of linked scripts, stylesheets, images, and videos. Note that even for self contained documents MathJax is still loaded externally (this is necessary because of it's size).
Syntax highlighting style. Supported styles include
"default", "tango", "pygments", "kate", "monochrome", "espresso", "zenburn",
"haddock", and "textmate". Pass NULL
to prevent syntax highlighting.
Pandoc template to use for rendering. Pass "default" to use
the rmarkdown package default template; pass NULL
to use pandoc's
built-in template; pass a path to use a custom template that you've created.
Note that if you don't use the "default" template then some features of
html_document
won't be available (see the Templates section below for
more details).
One or more css files to include
Named list of additional content to include within the
document (typically created using the includes
function).
Keep the markdown file generated by knitting.
Directory to copy dependent HTML libraries (e.g. jquery,
bootstrap, etc.) into. By default this will be the name of the document with
_files
appended to it.
Additional command line options to pass to pandoc
Extra arguments, passed to html_document_base
.
# NOT RUN {
rmarkdown::render("presentation.Rmd")
# }
Run the code above in your browser using DataCamp Workspace