I'm using Lyx on Mac and I want to get a regressionn output table with function texreg. My code is:
<<essai, echo=FALSE>>=
library(texreg)
df=data.frame(y=rnorm(100)+2*x, x=1:100)
reg = lm(y~x, data=df)
texreg(reg)
@
But I'didnt get the table in the pdf. I've got lines like this one.
##
## \begin{table}
## \begin{center}
How can I fix it?