source_purl: Extract code from knitr vignette and source it

Description Usage Arguments

View source: R/util.r

Description

Extract code from knitr vignette and source it.

Usage

1
source_purl(input, documentation = 1L, ...)

Arguments

input

path to file as single character string

documentation

single integer value passed on to knitr::purl. An integer specifying the level of documentation to go the tangled script: 0 means pure code (discard all text chunks); 1 (default) means add the chunk headers to code; 2 means add all text chunks to code as roxygen comments

...

further parameters passed to source


jackwasey/jwutil documentation built on Jan. 20, 2020, 6:56 p.m.