build_gallery: Use knitr to build all the snippets in a gallery

Description Usage Arguments Details

Description

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".

Usage

1
2
build_gallery(gallery = ".", infolder = "_R", outfolder = "snippets",
  images_dir = "images", caches_dir = "_caches", cache = FALSE, ...)

Arguments

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

Details

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.


dgrtwo/rgallery documentation built on May 15, 2019, 7:28 a.m.