Hi Ricardo, <<I am not to include an R code chunk within a table.>>
For reasons I do not really understand, R code within tables (or figure floats) can be very fragile. LyX 2.0 makes this better through the Sweave module, but it is still not perfect. The best way I have found for overcoming the fragility is to place it within a minipage. You can do this by clicking on Insert->Box, and then placing the code within there. If the code chunk is short, you can also use S/R expression insets. (Not sure if this is available in LyX 1.6.5. From LyX 2.0, go to Insert->Custom Inserts->S/R expression). Cheers, Rob Oakes