chop_params: Removes all trailing chunk parameters beginning at the last...

Description Usage Arguments Value Note

Description

Removes all trailing chunk parameters beginning at the last appearance of name= or any opts.label matching "name.*".

Usage

1
chop_params(params.src, name = "literal")

Arguments

params.src

string as returned by opts_chunk$get("params.src").

name

Name of the hook as $set in knitr.

Value

character vector of the modified parameters.

Note

Be sure that the provided hook name is unique enough to not match unintentded paramters.


Thell/knitLiteral documentation built on May 9, 2019, 4:28 p.m.