Description Usage Format Examples
Creates a template binding a label to a set of chunk options. Every chunk that references the template label will have the specificed set of options applied to it.
1 |
An object of class list
of length 5.
1 2 3 4 5 6 | opts_template$set(myfigures = list(fig.height = 4, fig.width = 4))
# later you can reuse these chunk options by 'opts.label', e.g.
# <<foo, opts.label='myfigures'>>=
# the above is equivalent to <<foo, fig.height=4, fig.width=4>>=
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.