### Bug description

Hi. I'm trying to render a table within a r-code chunk with `knitr::kable()` in a two column setting, but got the following trouble in the background jobs tab:

```
compilation failed- error
Package longtable Error: longtable not in 1-column mode.

See the longtable package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.324 \begin{longtable}
                       []{@{}rrr@{}} 
```

As said, I've been required a two column setting (journal style), so my YAML header and a minimal code is something like

````
---
format: pdf
classoption: twocolumn
---

# Enough to get the error
```{r}
knitr::kable(mtcars)
```

````
Running RStudio 2022.07.1 Build 554 on Linux Mint 20.3 


I hope this help out to improve Quarto's functionality and use cases, since the two column setting is very much required when working on an academic settings.





### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2022-11-14T14:31:54Z
emilianomm
bug
closed
`compilation failed -error` upon rendering a table with knitr::kable()
https://github.com/quarto-dev/quarto-cli/issues/3314