On 14-01-02 7:53 PM, Kirill Müller wrote:
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.

But results=tex is not the default. Having defaults for one option depend on the setting for another is confusing, so I think the current setting is appropriate.

Has this changed in the recent past?

I don't think so; check the NEWS file or use svn blame on the source to be sure.

Duncan Murdoch



-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