Description Usage Arguments Value Author(s) Examples
This function is an alternative to the html_document
and html_vignette
formats to create HTML document
from R Markdown. It generates small yet pretty HTML pages that are suitable
for publishing project pages and package vignettes.
See the online documentation
for more details.
1 2 3 4 5 6 7 8 9 10 11 |
theme |
Character string to specify the document theme. Currently supported
themes are |
highlight |
Character string to specify the syntax highlight theme.
Supported values are |
css |
Additional CSS file to be merged in the document. It will NOT overwrite the CSS from the themes. |
math |
The engine to render math expressions. Possible values are
|
fig_retina |
The same argument in |
keep_md |
Keep the markdown file generated by knitting.
This is the same argument in |
readme |
Use this vignette as the package ‘README.md’ file.
This is the same argument in |
compressed_css |
Whether the compressed CSS should be used. |
... |
Additional arguments passed to |
R Markdown output format to pass to render
.
Yixuan Qiu <https://statr.me>
1 2 3 4 5 6 | ## Not run:
doc = system.file("rmarkdown", "templates", "html_pretty_vignette",
"skeleton", "skeleton.Rmd", package = "prettydoc")
rmarkdown::render(doc, html_pretty(), output_dir = tempdir())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.