Description Usage Arguments Details Value A Custom Section Note Author(s) Source References See Also Examples
This function inherit from rmarkdown::html_document
function to config some options for Knitr tranlate Rmd file to HTML file.
1 2 | rmd_to_html(df_print)
rmd_to_html(df_print, keep_md)
|
code_folding |
Enable document readers to toggle the display of R code
chunks. Specify |
fig_width |
Default width (in inches) for figures |
fig_height |
Default height (in inches) for figures |
fig_retina |
Scaling to perform for retina displays (defaults to 2, which
currently works for all widely used retina displays). Set to |
keep_md |
Keep the markdown file generated by knitting. |
dev |
Graphics device to use for figure output (defaults to png) |
fig_caption |
|
md_extensions |
Markdown extensions to be added or removed from the
default definition or R Markdown. See the |
self_contained |
Produce a standalone HTML file with no external dependencies, using data: URIs to incorporate the contents of linked scripts, stylesheets, images, and videos. Note that even for self contained documents MathJax is still loaded externally (this is necessary because of its size). |
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 |
smart |
Produce typographically correct output, converting straight
quotes to curly quotes, |
... |
Additional function arguments to pass to the
base R Markdown HTML output formatter |
toc |
Not config option. |
toc_depth |
Not config option. |
Details for some things.
Return HTML file in same folder of Rmd file.
Text accompanying the custom section.
Don't run directly.
Passing value throught header of Rmd file.
--- output: Rb3m::rmd_to_html keep_md: yes ---
Trát Quang Th<U+1EE5>y
text-1
text-2
1 2 3 4 5 6 7 8 9 10 11 | add_numbers(1, 2) ## returns 3
## don't run this in calls to 'example(add_numbers)'
## Not run:
add_numbers(2, 3)
## End(Not run)
## don't test this during 'R CMD check'
add_numbers(4, 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.