1\docType{package}
2\name{rmarkdown-package}
3\alias{rmarkdown}
4\alias{rmarkdown-package}
5\title{R Markdown Document Conversion}
6\description{
7 Convert R Markdown documents into a variety of formats
8 including HTML, MS Word, PDF, and Beamer.
9}
10
11\details{
12
13The \pkg{rmarkdown} package includes high level functions for converting to a variety of formats. For example:
14
15\preformatted{
16render("input.Rmd", html_document())
17render("input.Rmd", pdf_document())
18}
19
20You can also specify a plain markdown file in which case knitting will be bypassed:
21
22\preformatted{render("input.md", html_document())
23}
24
25Additional options can be specified along with the output format:
26
27\preformatted{render("input.Rmd", html_document(toc = TRUE))
28render("input.Rmd", pdf_document(latex_engine = "lualatex"))
29render("input.Rmd", beamer_presentation(incremental = TRUE))
30}
31
32You can also include arbitrary pandoc command line arguments along with the other options:
33
34\preformatted{render("input.Rmd", pdf_document(toc = TRUE, pandoc_args = "--listings"))
35}
36
37}
38
39\seealso{
40\link{render}, \link{html_document}, \link{pdf_document}, \link{word_document}, \link{beamer_presentation}
41}
42
43
44