Description Usage Arguments Examples
This function knits the NKO R Markdown to MS Word format, with NKO Themes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | nko_report(
toc = FALSE,
toc_depth = 3,
fig_width = 7,
fig_height = 5,
fig_caption = TRUE,
df_print = "kable",
smart = TRUE,
highlight = "default",
reference_docx = system.file("rmarkdown/templates/resources/Analyses_R_Reference_Doc_2019_09_22.docx",
package = "NKOMarkdownTemplate"),
keep_md = FALSE,
md_extensions = NULL,
pandoc_args = NULL
)
|
toc |
TRUE to include a table of contents in the output |
toc_depth |
Depth of headers to include in table of contents |
fig_width |
Default width (in inches) for figures |
fig_height |
Default width (in inches) for figures |
fig_caption |
TRUE to render figures with captions |
df_print |
Method to be used for printing data frames. Valid values include "default", "kable", "tibble", and "paged". The "default" method usesprint.data.frame. The "kable" method uses the knitr::kablefunction. 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. |
smart |
Produce typographically correct output, converting straight quotes to curly quotes, — to em-dashes, – to en-dashes, and ... to ellipses. |
highlight |
Syntax highlighting style. Supported styles include "default", "tango", "pygments", "kate", "monochrome", "espresso", "zenburn", and "haddock". Pass NULL to prevent syntax highlighting. |
reference_docx |
Use the specified file as a style reference in producing a docx file. For best results, the reference docx should be a modified version of a docx file produced using pandoc. Pass "default" to use the rmarkdown default styles. |
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 rmarkdown_format for additional details. |
pandoc_args |
Additional command line options to pass to pandoc |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.