| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/defaults.R |
| 3 |
\docType{data} |
| 4 |
\name{opts_template} |
| 5 |
\alias{opts_template} |
| 6 |
\title{Template for creating reusable chunk options} |
| 7 |
\format{ |
| 8 |
An object of class \code{list} of length 7. |
| 9 |
} |
| 10 |
\usage{ |
| 11 |
opts_template |
| 12 |
} |
| 13 |
\description{ |
| 14 |
Creates a template binding a label to a set of chunk options. Every chunk |
| 15 |
that references the template label will have the specified set of options |
| 16 |
applied to it. |
| 17 |
} |
| 18 |
\examples{ |
| 19 |
opts_template$set(myfigures = list(fig.height = 4, fig.width = 4)) |
| 20 |
# later you can reuse these chunk options by 'opts.label', e.g. |
| 21 |
|
| 22 |
# <<foo, opts.label='myfigures'>>= |
| 23 |
|
| 24 |
# the above is equivalent to <<foo, fig.height=4, fig.width=4>>= |
| 25 |
} |
| 26 |
\keyword{datasets} |