I'd like to break a table across beamer slides with the kable
option longtable = T
. The respective document compiles without error; however, the table is not split across slides.
Here's a MWE:
---
output: beamer_presentation # pdf_document, beamer_presentation
header-includes:
- \usepackage{longtable}
- \usepackage{booktabs}
- \usepackage{makecell}
---
```{r, warning=FALSE, echo=FALSE, message=FALSE}
library(dplyr)
iris %>%
knitr::kable(format = "latex", booktabs = TRUE, longtable = TRUE) %>%
kableExtra::column_spec(2, width = "16em")
```
Am I doing something wrong?