<<>>=
options(width = 50)
<<real-chunk>>=
# R code here
<<>>=
options(width = 75)
@
If you want a global width, it will be much easier; just set it in
your first chunk.
BTW, note there was a change in the formatR package, on which this
functionality is based
(http://cran.r-project.org/web/packages/formatR/NEWS):
o the default value of the 'width.cutoff' argument in tidy.source()
is getOption('width') now; in the past it was 75% of that width
which was less intuitive
Regards,
Yihui
--
Yihui Xie <xiey...@gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA