To render your R Markdown documents in a temporary directory, run
render_rmd_in_tmp in the directory that contains the R Markdown
files. Afterwards, using the RStudio Knit button will automatically use this
custom site generator. If you receive an error from RStudio, make sure the
Knit Directory is set to Document Directory (you can set this with the
dropdown menu next to the Knit button).
Website directory (or the name of a file within the directory)
The encoding of the input file; see
Additional arguments (currently unused)
If you render the file from the R console, use
render_site. If you specify the
output_format, it is preferred to pass a character vector, e.g.
"html_document", instead of the object itself, e.g.
1 2 3 4 5 6 7 8
## Not run: library("rmarkdown") render_site("example.Rmd", "html_document") render_site("example.Rmd", "pdf_document") render_site("example.Rmd", "word_document") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.