I was having a look at the tables package in R and tried to run an example in LyX. It works fine until I try using the suggestion to use the booktabs() command in the knitr statement.
The code works fine in R. I assume that I am in conflict with another latex package in LyX? Any workarounds? It's not a serious problem as I don't actually need to use the tables package; I was just playing around with tables trying to understand the syntax and decided to try it in LyX.