Debian Codegraph @

R/rmarkdown-package.R

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