Description Usage Arguments Details See Also
repdoc_site
is a
custom
site generator to be used in combination with the R Markdown output format
repdoc_html
.
1 | repdoc_site(input, encoding = getOption("encoding"), ...)
|
input |
character. The name of the website directory or a specific R Markdown file in the website directory. |
encoding |
character. The character encoding to use to read the file. |
... |
Placeholder for potential future use. |
Do not call the function repdoc_site
directly. Instead insert the line
below directly into the YAML header of the file index.Rmd
:
site: repdoc:repdoc_site
Then you can build the website by running render_site
in the R console or clicking the Knit button in RStudio.
If you receive an error when using the RStudio Knit button (the error is about an unused argument), make sure the Knit Directory is set to Document Directory (you can set this with the dropdown menu next to the Knit button).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.