But John needs the LaTeX table output in the next line of R code;
include=FALSE will exclude everything in that chunk.

Moving booktabs() to the previous chunk and using include=FALSE there
will be fine.

Regards,
Yihui
--
Yihui Xie <xieyi...@gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Mon, Jun 3, 2013 at 11:29 PM, Liviu Andronic <landronim...@gmail.com> wrote:
> On Mon, Jun 3, 2013 at 10:45 PM, Yihui Xie <x...@yihui.name> wrote:
>> You should not print booktabs() in a chunk with results='asis',
>> because that will generate invalid LaTeX code in the output. You can
>> use invisible(booktabs()) or foo <- booktabs() to avoid printing.
>>
>> Or request Duncan (the package author) to return invisible(save) in 
>> booktabs().
>>
> I simply use chunk with include=FALSE in this case.
>
> Liviu

Reply via email to