This function provides an alternative to the Knit button in RStudio, which tends to fail when working from a mapped disk.
It is based on the render
function but also provides a preview of the rendered document like Knit.
1 2 |
input |
The path of the input file to be rendered. Generally an R Markdown document (.Rmd). Defaults to the active file in the RStudio editor. |
replace |
A list of two strings. The first string will be replaced by the second one in the path. This can be used to solve issues when working from a mapped disk. |
preview |
Whether to preview the rendered documents. |
... |
Arguments to pass to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.