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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -