Description Usage Arguments Note
View source: R/caption-functions.r
Use this with chunk option fig.cap
to attach a copy
of the produced graphic in the resulting pdf.
1 |
cap |
Caption |
attach |
attach graph? if |
ext |
what is the file extension? if |
warn |
warn if extension does not seem available? |
Beware if you want different extension in the attachment than appears in your pdf. LaTeX has a default order in which it chooses formats if a file name is not unique (knitr does not specify extension). E.g. you might want pdf:s in your pdf but .png in you attachment. Then you can specify something like \DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg,jpeg} in the preamble of you LaTeX document.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.