As an object is printed, knitr will collect metadata about it (if
available). After knitting is done, all the metadata is accessible via this
function. You can manually add metadata to the knitr session via
knit_meta_add().
Arguments
- class
Optionally return only metadata entries that inherit from the specified class. The default,
NULL, returns all entries.- clean
Whether to clean the collected metadata. By default, the metadata stored in knitr is cleaned up once retrieved, because we may not want the metadata to be passed to the next
knit()call; to be defensive (i.e. not to have carryover metadata), you can callknit_meta()beforeknit().- meta
A metadata object to be added to the session.
- label
A chunk label to indicate which chunk the metadata belongs to.