[R] Sweave removes \end{table}

Keith Jones keithlj at suddenlink.net
Sun Jan 11 16:25:15 CET 2009


Hi,

I have found that when I run my .rnw file through Sweave it removes 
the \end{table} LaTeX command after the table that was not generated 
using R.:

excerpt from my .rnw file
...
6.000 -- 6.003 &          3 &        0.6 \\
\hline
8.500 -- 8.505 &          4 &        0.8 \\
\hline
Grand Total &        493 &            \\
\hline
\end{tabular}
\label{tbl:sbbs}

\end{table}
\section{Recommendations}

excerpt from the .tex file generated by Sweave
...
6.000 -- 6.003 &          3 &        0.6 \\
\hline
8.500 -- 8.505 &          4 &        0.8 \\
\hline
Grand Total &        493 &            \\
\hline
\end{tabular}
\label{tbl:sbbs}

\section{Recommendations}

If I put two \end{table} commands in the table only one is removed by Sweave.

Has anyone else seen this?

Thanks,

Keith Jones, Ph.D.
VTS Pumps




More information about the R-help mailing list