html_doc_5: what have we done to html_document?

Description Usage Arguments Value See Also Examples

View source: R/html_doc_5.R

Description

Less simple, but we enable a floating table-of-contents, code_folding, syntax highlighting, insert some custom css, then pass the rest of our arguments to rmarkdown::html_document

Usage

1
2
3
html_doc_5(toc = TRUE, toc_float = TRUE, code_folding = c("show", "hide",
  "none"), self_contained = FALSE, highlight = "textmate", css = NULL,
  lib_dir = "site_libs", ...)

Arguments

toc

TRUE to include a table of contents in the output

toc_float

TRUE to float the table of contents to the left of the main document content

code_folding

Enable document readers to toggle the display of R code chunks. We change the default to "hide". See rmarkdown::html_document

self_contained

Produce a standalone HTML file with no external dependencies...

highlight

Syntax highlighting style

css

One or more css files to include in addition to this format's css.

lib_dir

Directory to copy dependent HTML libraries (e.g. jquery, bootstrap, etc.) into...

...

other arguments passed to rmarkdown::html_document

Value

R Markdown output format to pass to rmarkdown::render

See Also

http://rmarkdown.rstudio.com/developer_custom_formats.html

Examples

1
2
3
4
## Not run: 
  rmarkdown::render("foo.Rmd", html_doc_5())

## End(Not run)

ijlyttle/user2016docdemo documentation built on May 18, 2019, 3:42 a.m.