Hi all,

I've posted this same message yesterday evening at http://www.latex-community.org LyX forum. Please, accept my apologies for cross-posting! I'm new to this LyX world and trying to identify the best way of getting/providing help! Here the issue:

I've successfully installed R 2.11.0 and LyX 1.6.5 in a MacBook Pro running Mac OS X 10.5.8. Some examples including more or less complex R code chunks run without a glitch.

But I am not able to include a R code chuck within a table.

This works fine:

--------
% Preview source code for paragraph 10

<<Normal1,echo=T>>=
qs=1
@
--------

But this doesn't work:

--------
% Preview source code for paragraph 11

\begin{tabular}{|c|}
\hline
<<Normal1,echo=T>>=
pot=2
@
\tabularnewline
\hline
\end{tabular}
--------

The LyX literate errors window gives this information:

*****
Errors:

LaTeX Error: Something's wrong--perhaps a missing \item.
LaTeX Error: Something's wrong--perhaps a missing \item.
LaTeX Error: Something's wrong--perhaps a missing \item.
LaTeX Error: Something's wrong--perhaps a missing \item.

Description:

\begin{Sinput}

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
*****

This proposal by gmedina at http://www.latex-community.org LyX forum, avoids the error, but the result is a table with those lines in the table, not with the R results.



Please, where am I wrong? Is it not possible to include R code chunks in LyX tables?

Thanks for your help!

Ricardo

--
Ricardo Rodríguez
CTO
eBiotic.
Life Sciences, Data Modeling and Information Management Systems

Reply via email to