[R] R echo code chunk runs off the page using Lyx and Sweave

Ben Bolker bolker at ufl.edu
Tue Nov 10 23:11:46 CET 2009




Ista Zahn wrote:
> 
> options(width=n) is supposed to work, and does for me. I don't use Lyx
> though...
> 
> -Ista
> On Tue, Nov 10, 2009 at 4:27 PM, Mark Connolly <mark_connolly at acm.org>
> wrote:
>> I am not really sure where in the interactions this is handled, but I
>> would
>> like to keep echo-ed R code chunks from running past the right margin and
>> off the page.  I started with R and options(width=n), but this does not
>> seem
>> to do anything (in the context of a document -- line command works just
>> fine).   I have beating my head against different Lyx document settings
>> without anything to show.  Anyone point me in the right direction?
> 
> 

\SweaveOpts{keep.source=TRUE}

in your LaTeX code will (I think) keep whatever manual formatting you do, 
in all code chunks (or use keep.source=TRUE) for particular code chunks
of concern

-- 
View this message in context: http://old.nabble.com/R-echo-code-chunk-runs-off-the-page-using-Lyx-and-Sweave-tp26291535p26292226.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list