html_document(toc = FALSE, toc_depth = 3, number_sections = FALSE,
  fig_width = 7, fig_height = 5, fig_retina = if (!fig_caption) 2,
  fig_caption = FALSE, dev = "png", smart = TRUE, self_contained = TRUE,
  theme = "default", highlight = "default", mathjax = "default",
  template = "default", css = NULL, includes = NULL, keep_md = FALSE,
  lib_dir = NULL, pandoc_args = NULL, ...)TRUE to include a table of contents in the outputTRUE to number section headingsfig_caption is FALSE, which currently works for all widely
used retina displays). Set to NULL to prevent retina scaling. Note
that this will always be TRUE to render figures with captionsNULL for
no theme (in this case you can use the css parameter to add your own
styles).NULL to prevent syntax
highlighting.NULL to exclude MathJNULL
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 "defaultincludes function)._files appended to it.rendertemplate = NULL.Note however that if you choose not to use the "default" HTML template then several aspects of HTML document rendering will behave differently:
themeparameter does not work (you can still
     provide styles using thecssparameter).highlight parameter, the default highlighting
     style will resolve to "pygments" and the "textmate" highlighting
     style is not availableself_contained is TRUE
     (these two options can't be used together in normal pandoc templates).includesR Markdown documents also support citations. You can find more information on
the markdown syntax for citations within the pandoc documentation on
library(rmarkdown)
render("input.Rmd", html_document())
render("input.Rmd", html_document(toc = TRUE))Run the code above in your browser using DataLab