yihui/knitr — Issue #163: xtable problem
Author: DCCKC
Created: 2012-03-05 17:05:09+00:00
State: open

I have a small problem with an xtable option that I think is related to the use of the framed package. This is using knitr 0.3. Given a small code chunk:

<>=
test <- data.frame(x = 1:3, y = 1:3)
library(xtable)
print(xtable(test), floating.environment="sidewaystable")
@

(need \usepackage{rotating}) the tex file fails to compile. I think the reason is that the code chunk is nested in the framed environment and those two don't play too well together. I see that there has been a few other problems using framed - but this one is maybe different.

Anyway - thank you for the continued rapid development of this excellent package!

David

ERROR: LaTeX Error: Not in outer par mode.

--- TeX said ---

See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...

l.471 \begin{sidewaystable}[ht]

--- HELP ---
You had a figure or table environment or a \marginpar command in math
mode or inside a parbox.