md_document | R Documentation |
Format for converting from R Markdown to another variant of markdown (e.g. strict markdown or github flavored markdown)
md_document(
variant = "markdown_strict",
preserve_yaml = FALSE,
toc = FALSE,
toc_depth = 3,
number_sections = FALSE,
standalone = FALSE,
fig_width = 7,
fig_height = 5,
fig_retina = NULL,
dev = "png",
df_print = "default",
includes = NULL,
md_extensions = NULL,
pandoc_args = NULL,
ext = ".md"
)
variant |
Markdown variant to produce (defaults to "markdown_strict"). Other valid values are "commonmark", "gfm", "commonmark_x", "markdown_mmd", markdown_phpextra", "markdown_github", or even "markdown" (which produces pandoc markdown). You can also compose custom markdown variants, see the pandoc online documentation for details. |
preserve_yaml |
Preserve YAML front matter in final document. |
toc |
|
toc_depth |
Depth of headers to include in table of contents |
number_sections |
|
standalone |
Set to |
fig_width |
Default width (in inches) for figures |
fig_height |
Default height (in inches) for figures |
fig_retina |
Scaling to perform for retina displays. Defaults to
|
dev |
Graphics device to use for figure output (defaults to png) |
df_print |
Method to be used for printing data frames. Valid values
include "default", "kable", "tibble", and "paged". The "default" method
uses a corresponding S3 method of |
includes |
Named list of additional content to include within the
document (typically created using the |
md_extensions |
Markdown extensions to be added or removed from the
default definition of R Markdown. See the |
pandoc_args |
Additional command line options to pass to pandoc |
ext |
Extension of the output file (defaults to ".md"). |
See the online documentation
for additional details on using the md_document()
format.
R Markdown documents can have optional metadata that is used to generate a document header that includes the title, author, and date. For more details see the documentation on R Markdown metadata.
R Markdown output format to pass to render()
## Not run:
library(rmarkdown)
render("input.Rmd", md_document())
render("input.Rmd", md_document(variant = "markdown_github"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.