
Modify an existing output format to have litr behavior
litrify_output_format.RdThis function modifies the pre_knit() and post_processor() functions of a
preexisting output format so that it will have the litr behavior (meaning that an R package will be created when rmarkdown::render() is called).
Usage
litrify_output_format(
base_format = rmarkdown::html_document,
minimal_eval = FALSE
)Arguments
- base_format
a preexisting, non-litr output format such as
rmarkdown::html_document- minimal_eval
If
TRUE, then only chunks withlitr::document()orusethiscommands will be evaluated. This can be convenient in coding when you just want to quickly update the R package without having to wait for long evaluations to occur.