r - opts_current: how does it work in knitr? -
i trying set different figure size in different chunks. first define global settings using:
opts_chunk$set(fig.width=7, fig.height=7)
then, specific chunks, use:
opts_current$set(fig.width=7, fig.height=14)
but later neglected. so, how opts_current work?
for specific code chunks, put chunk options in chunk header, e.g.
```{r fig.width=7, fig.height=14}
these called local chunk options, override global chunk options (temporarily specific chunk).
Comments
Post a Comment