我正在尝试kableExtra
在 RStudio 的 ioslides 中包含表格。我正确地得到了表格,但是从小插图示例中的简单格式似乎已经消失了。
---
title: "Tables"
output:
ioslides_presentation: default
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
library(knitr)
library(kableExtra)
dt <- mtcars[1:5, 1:6]
```
## No styling
```{r t1}
dt %>%
kable("html")
```
## Styling
```{r t2}
dt %>%
kable("html") %>%
kable_styling(bootstrap_options = c("striped", "condensed", full_width = F, position = "center"))
```
有什么我想念的想法吗?