Skip to content
Prev 303771 / 398502 Next

Changing line length in Sweave output works for numeric, but not for character vectors

Two possible solutions:

1. Redefine the LaTeX environment so it allows wrapping (see listings
for example);
2. Manually break your long string into shorter pieces and paste()
them together, e.g. paste('long', 'long', 'string')

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Mon, Aug 20, 2012 at 5:03 PM, Simon Kiss <sjkiss at gmail.com> wrote: