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

Mark Connolly mark_connolly at acm.org
Wed Dec 9 15:49:22 CET 2009


I somehow missed the response posted by Ben Bolker.  He is quite correct 
(happily for me!):

\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




This information has made its way into the latest Sweave manual at 
http://www.statistik.lmu.de/~leisch/Sweave/.




More information about the R-help mailing list