knitthis | R Documentation |
This is a convenient alternative to using the knit button when you want to specify additional arguments such as output directory.
knitthis(output_dir = "documents", ...)
output_dir |
The output directory, as used in |
... |
Additional arguments to pass to |
## Not run:
# This command will knit the Rmd file that is currently open into the directory R.
knitthis("R")
# Assuming the open file is data_prep.Rmd, this would be equivalent to running:
rmarkdown::render(".../data_prep.Rmd", output_dir = ".../R")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.