[R] Sweave question - Setting Soutput code chunks to stay inside page margins?

2012-01-19 Thread Tal Galili
Hello all, Sometimes I get to make an R code chunk (in Sweave) which is longer then the margins of the page. Is there a way to force it to go to the next line (in Sweave) once that happens? Here are two cases this happens in the resulting .tex file (one is a hard case, and the other is simpler)

Re: [R] Sweave question - Setting Soutput code chunks to stay inside page margins?

2012-01-19 Thread Yihui Xie
Do you have a practical case in which you have to print 114 a's without spaces? I mean this is such an extreme case that is unlikely to happen in real life. As long as you have spaces in your string, it will be easy for LaTeX to wrap long lines, although LaTeX should be able to do it even if the

Re: [R] Sweave question - Setting Soutput code chunks to stay inside page margins?

2012-01-19 Thread Tal Galili
Hi Yihui, The a's case happens when, for example, one prints some long equation function without using spaces in it. It happened to me in something I wrote which I will write now while including spaces if I had known it would solve the issue, but I have yet to have found one (for Sweave, that is

Re: [R] Sweave question - Setting Soutput code chunks to stay inside page margins?

2012-01-19 Thread Duncan Murdoch
On 12-01-19 3:24 AM, Tal Galili wrote: Hello all, Sometimes I get to make an R code chunk (in Sweave) which is longer then the margins of the page. Is there a way to force it to go to the next line (in Sweave) once that happens? Sweave normally uses a verbatim environment, so you have to