Uses bookdown package to allow cross-referencing. Specifies many defaults, including floating table of contents, code folding and styling.

fm_html(
  toc = TRUE,
  code_folding = "hide",
  number_sections = FALSE,
  self_contained = TRUE,
  ...
)

Arguments

toc

TRUE/FALSE (default TRUE). Display a table of contents

code_folding

"show", "hide", or FALSE to change code display behaviour

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. Set as FALSE if the file size increases as Git cannot handle binary functions very efficiently.

...

additional arguments which can be parsed by the html_document function

See also