Description Usage Arguments Details
Snippets are stored as .Rmd files in one directory, and are compiled into a new directory. The convention in this package is to store inputs in _R and outputs in "snippets".
1 2 | build_gallery(gallery = ".", infolder = "_R", outfolder = "snippets",
images_dir = "images", caches_dir = "_caches", cache = FALSE, ...)
|
gallery |
directory in which to build snippets |
infolder |
input directory |
outfolder |
directory |
images_dir |
directory to store images |
caches_dir |
directory to store caches |
cache |
whether to cache knitr chunks |
... |
extra arguments for knitr's chunk options |
Figures end up stored in multiple images directories, one for each snippet, in the given images directory. Caches are stored, one directory for each snippet, in the given caches directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.