Skip to content
Prev 140638 / 398506 Next

Sweave - print \n ?

Try adding strip.white=false on the code chunks:

<<echo=false,results=tex, strip.white=false>>=
hline()
hline()
@

Read ?RweaveLatex for more settings.

or if you want this to happen in all code chunks add this early on in  
the rnw file:

\SweaveOpts{strip.white=false}

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College
On Mar 29, 2008, at 4:54 AM, Werner Wernersen wrote: