html_doc_2: start to abuse to html_document

Description Usage Arguments Details Value See Also Examples

View source: R/html_doc_2.R

Description

The next simplest thing we can do is change the defaults for code_folding and theme, add some css for the title, then pass the rest of our arguments to rmarkdown::html_document

Usage

1
2
html_doc_2(code_folding = c("hide", "show", "none"), theme = "readable",
  css = NULL, ...)

Arguments

code_folding

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

theme

Use to change the theme

css

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

...

other arguments passed to rmarkdown::html_document

Details

Any css you send using the 'css' argument will be appended to the title css.

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_2())

## End(Not run)

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