On 01/03/2014 01:45 AM, Duncan Murdoch wrote:
You are running with the strip.white option set to TRUE. That strips blank lines at then beginning and end of each output piece. Just set strip.white=FALSE.
Thanks, the code below works perfectly. I have also found the documentation in ?RweaveLatex .

I'm not sure if the default setting is sensible for "results=tex", though. Has this changed in the recent past?


-Kirill


\documentclass{article}
\begin{document}
<<inline,echo=FALSE,results=tex,strip.white=FALSE>>=
cat("a\n")
cat("b\n \n")
cat("c\nd")
@
\end{document}

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to