html_fragment

0th

Percentile

Convert to an HTML fragment.

An html fragment is suitable for inclusion into an external html paage. See html_document for full details - this is a minor variation that assumes you will include the output into an existing document (e.g. a blog post).

Usage
html_fragment(number_sections = FALSE, fig_width = 7, fig_height = 5,
  fig_retina = if (!fig_caption) 2, fig_caption = FALSE, dev = "png",
  smart = TRUE, keep_md = FALSE, pandoc_args = NULL, ...)
Arguments
number_sections
TRUE to number section headings
fig_width
Default width (in inches) for figures
fig_height
Default width (in inches) for figures
fig_retina
Scaling to perform for retina displays (defaults to 2 when fig_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
fig_caption
TRUE to render figures with captions
dev
Graphics device to use for figure output (defaults to png)
smart
Produce typographically correct output, converting straight quotes to curly quotes, --- to em-dashes, -- to en-dashes, and ... to ellipses.
keep_md
Keep the markdown file generated by knitting.
pandoc_args
Additional command line options to pass to pandoc
...
Additional function arguments to pass to the base R Markdown HTML output formatter
Value

  • R Markdown output format to pass to render

Aliases
  • html_fragment
Documentation reproduced from package rmarkdown, version 0.5.1, License: GPL-3

Community examples

Looks like there are no examples yet.