su_document.Rd
Format for converting from R Markdown to a Strategy Unit branded MS Word document.
su_document(
use_numbered_headings = FALSE,
toc = FALSE,
toc_depth = 1,
fig_caption = TRUE,
df_print = "kable",
highlight = "default",
keep_md = FALSE,
md_extensions = NULL,
pandoc_args = NULL
)
should we use numbered headings? Defaults to false
TRUE
to include a table of contents in the output
Depth of headers to include in table of contents
TRUE
to render figures with captions
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 print
, typically
print.data.frame
. The "kable" method uses the
knitr::kable
function. The "tibble" method uses
the tibble package to print a summary of the data frame. The "paged"
method creates a paginated HTML table (note that this method is only valid
for formats that produce HTML). In addition to the named methods you can
also pass an arbitrary function to be used for printing data frames. You
can disable the df_print
behavior entirely by setting the option
rmarkdown.df_print
to FALSE
. See
Data
frame printing section in bookdown book for examples.
Syntax highlighting style. Supported styles include
"default", "tango", "pygments", "kate", "monochrome", "espresso",
"zenburn", and "haddock". Pass NULL
to prevent syntax highlighting.
Keep the markdown file generated by knitting.
Markdown extensions to be added or removed from the
default definition or R Markdown. See the rmarkdown_format
for
additional details.
Additional command line options to pass to pandoc
R Markdown output format to pass to render
See the online
documentation for additional details on using the word_document
format.