brew: Convert to an HTML document

Description Usage Arguments Details Value

Description

Format for converting from R Markdown to an HTML document.

Usage

1
2
3
4
brew(fig_width = 8, fig_height = 5, fig_caption = TRUE,
  highlight = "kate", lightbox = FALSE, thumbnails = FALSE,
  gallery = FALSE, pandoc_args = NULL, toc_depth = 2,
  use_bookdown = FALSE, ...)

Arguments

fig_width

Default width (in inches) for figures

fig_height

Default width (in inches) for figures

fig_caption

TRUE to render figures with captions

highlight

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

lightbox

if TRUE, add lightbox effect to content images

thumbnails

if TRUE display content images as thumbnails

gallery

if TRUE and lightbox is TRUE, add a gallery navigation between images in lightbox display

pandoc_args

arguments passed to the pandoc_args argument of rmarkdown html_document

toc_depth

adjust table of contents depth

use_bookdown

if TRUE, uses html_document2 instead of html_document, thus providing numbered sections and cross references

...

Additional function arguments passed to R Markdown html_document

Details

CSS adapted from the readtheorg theme of the org-html-themes project : https://github.com/fniessen/org-html-themes, which is itself inspired by the Read the docs theme : https://readthedocs.org/.

Value

R Markdown output format to pass to render


joebrew/joebrew documentation built on May 19, 2019, 2:59 p.m.