R markdown ioslides代码块的增量模式

Alb*_*lby 7 r knitr r-markdown

如何将R代码块逐渐显示?

例如,我在标题中添加了以下选项:

---
...other configurations...
output:
  ioslides_presentation:
    incremental: true
---
Run Code Online (Sandbox Code Playgroud)

但增量模式仅适用于项目符号,而不适用于代码块

## Slide 1
  * this bullet point appears first
  * this bullet point appears second
```{r eval=FALSE}
# This chunk is there from the beginning
```
Run Code Online (Sandbox Code Playgroud)

所以我的问题是:你如何在第二颗子弹后出现这个块?

wic*_*ici 7

您可以使用该.build属性

## Slide 1 {.build}
  * this bullet point appears first
  * this bullet point appears second
```{r eval=FALSE}
# This chunk appears third
```
Run Code Online (Sandbox Code Playgroud)

此解决方案存在一个小问题:在此幻灯片上的第一个进度中,不会显示任何内容.您必须前进两次才能显示第一个项目符号.