rmdshower (version 2.1.1)

shower_presentation: R Markdown format for Shower presentations

Description

Shower is a vanilla HTML/CSS/JS presentation engine.

Usage

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, ...)

Arguments

theme

Theme to use. The default theme is ‘ribbon’. The ‘material’ theme is an alternative.

ratio

Slide ratio to use. It can be ‘4x3’ or ‘16x10’.

katex

Whether to include KaTeX support. It is turned off by default. See https://github.com/Khan/KaTeX for more about KaTeX.

incremental

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

fig_width

Default width (in inches) for figures

fig_height

Default width (in inches) for figures

fig_retina

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).

fig_caption

TRUE to render figures with captions

smart

Produce typographically correct output, converting straight quotes to curly quotes, --- to em-dashes, -- to en-dashes, and ... to ellipses.

self_contained

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).

highlight

Syntax highlighting style. Supported styles include "default", "tango", "pygments", "kate", "monochrome", "espresso", "zenburn", "haddock", and "textmate". Pass NULL to prevent syntax highlighting.

template

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).

css

One or more css files to include

includes

Named list of additional content to include within the document (typically created using the includes function).

keep_md

Keep the markdown file generated by knitting.

lib_dir

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.

pandoc_args

Additional command line options to pass to pandoc

...

Extra arguments, passed to html_document_base.

See Also

https://github.com/shower/shower

Examples

Run this code
# NOT RUN {
rmarkdown::render("presentation.Rmd")
# }

Run the code above in your browser using DataCamp Workspace