all_labels() returns all chunk labels as a character
vector. Optionally, you can specify a series of conditions to filter the
labels. The function 'all_rcpp_labels()' is a wrapper function for
all_labels(engine == 'Rcpp').
1 2 3
A vector of R expressions, each of which should return
For example, suppose the condition expression is
engine == 'Rcpp', the
engine is the local chunk option
engine; if an
expression fails to be evaluated (e.g. when a certain object does not exist),
FALSE is returned and the label for this chunk will be filtered out.
A character vector.
Empty code chunks are always ignored, including those chunks that are
empty in the original document but filled with code using chunk options
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.