View source: R/utils-extract-label-from-figure-filename.R
extract_label_from_figure_filename | R Documentation |
Extract chunk label for the knitr chunk containing includegraphics and a filename
extract_label_from_figure_filename(fn)
fn |
The figure file name to match (no extension) |
Starts by parsing the _bookdown.yml
file to extract the names of all
uncommented rmd files in the current build.
Searches all those files for any lines starting with (ref:variable). Preceding spaces are ignored
Extracts the chunkname
given the filename loaded within the chunk
that chunkname
belongs to
The chunk label found for the chunk which includes the figure
file fn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.