| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/rtf_document.R |
| 3 |
\name{rtf_document} |
| 4 |
\alias{rtf_document} |
| 5 |
\title{Convert to an RTF document} |
| 6 |
\usage{ |
| 7 |
rtf_document( |
| 8 |
toc = FALSE, |
| 9 |
toc_depth = 3, |
| 10 |
number_sections = FALSE, |
| 11 |
fig_width = 5, |
| 12 |
fig_height = 4, |
| 13 |
keep_md = FALSE, |
| 14 |
md_extensions = NULL, |
| 15 |
pandoc_args = NULL |
| 16 |
) |
| 17 |
} |
| 18 |
\arguments{ |
| 19 |
\item{toc}{\code{TRUE} to include a table of contents in the output} |
| 20 |
|
| 21 |
\item{toc_depth}{Depth of headers to include in table of contents} |
| 22 |
|
| 23 |
\item{number_sections}{\code{TRUE} to number section headings} |
| 24 |
|
| 25 |
\item{fig_width}{Default width (in inches) for figures} |
| 26 |
|
| 27 |
\item{fig_height}{Default height (in inches) for figures} |
| 28 |
|
| 29 |
\item{keep_md}{Keep the markdown file generated by knitting.} |
| 30 |
|
| 31 |
\item{md_extensions}{Markdown extensions to be added or removed from the |
| 32 |
default definition of R Markdown. See the \code{\link{rmarkdown_format}} for |
| 33 |
additional details.} |
| 34 |
|
| 35 |
\item{pandoc_args}{Additional command line options to pass to pandoc} |
| 36 |
} |
| 37 |
\value{ |
| 38 |
R Markdown output format to pass to \code{\link{render}} |
| 39 |
} |
| 40 |
\description{ |
| 41 |
Format for converting from R Markdown to an RTF document. |
| 42 |
} |
| 43 |
\details{ |
| 44 |
See the \href{https://yihui.org/rmarkdown/rich-text-format-document.html}{online |
| 45 |
documentation} for additional details on using the \code{rtf_document} format. |
| 46 |
|
| 47 |
R Markdown documents can have optional metadata that is used to generate a |
| 48 |
document header that includes the title, author, and date. For more details |
| 49 |
see the documentation on R Markdown \link[=rmd_metadata]{metadata}. |
| 50 |
|
| 51 |
R Markdown documents also support citations. You can find more information on |
| 52 |
the markdown syntax for citations in the |
| 53 |
\href{https://pandoc.org/MANUAL.html#citations}{Bibliographies |
| 54 |
and Citations} article in the online documentation. |
| 55 |
} |
| 56 |
\examples{ |
| 57 |
\dontrun{ |
| 58 |
|
| 59 |
library(rmarkdown) |
| 60 |
|
| 61 |
# simple invocation |
| 62 |
render("input.Rmd", rtf_document()) |
| 63 |
|
| 64 |
# specify table of contents option |
| 65 |
render("input.Rmd", rtf_document(toc = TRUE)) |
| 66 |
} |
| 67 |
} |