Description Usage Arguments Details See Also
Export an Rmarkdown file to a Word document using a custom template.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | word_document_te(
toc = FALSE,
toc_depth = 3,
fig_width = 5,
fig_height = 4,
fig_caption = TRUE,
df_print = "default",
smart = TRUE,
highlight = "default",
reference_docx = system.file("templates", "te", "template-te.docx", package =
"teproj"),
keep_md = FALSE,
md_extensions = NULL,
pandoc_args = NULL
)
word_document_rstudio(
...,
reference_docx = system.file("templates", "rstudio", "template-default.docx", package
= "teproj")
)
|
toc |
|
toc_depth |
Depth of headers to include in table of contents |
fig_width |
Default width (in inches) for figures |
fig_height |
Default height (in inches) for figures |
fig_caption |
|
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 |
highlight |
Syntax highlighting style. Supported styles include
"default", "tango", "pygments", "kate", "monochrome", "espresso",
"zenburn", and "haddock". Pass |
reference_docx |
path. Refers to custom word document template. |
keep_md |
Keep the markdown file generated by knitting. |
md_extensions |
Markdown extensions to be added or removed from the
default definition or R Markdown. See the |
pandoc_args |
Additional command line options to pass to pandoc |
... |
dots. Arguments passed to |
All of the default arguments are the same as those from the original
rmarkdown::word_document()
. The _te
version uses a personally
customized Word document. The _rstudio
version is the document
that is generated by knitting the default rmarkdown
Word document template.
https://github.com/rstudio/rmarkdown/blob/master/R/word_document.R.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.