R markdown ioslides 代码块的增量模式
R markdown ioslides incremental mode for code chunks
如何让 R 代码块以递增方式出现?
比如我在header中加入如下选项:
---
...other configurations...
output:
ioslides_presentation:
incremental: true
---
但是增量模式只适用于子弹,不适用于代码块
## Slide 1
* this bullet point appears first
* this bullet point appears second
```{r eval=FALSE}
# This chunk is there from the beginning
```
所以我的问题是:
如何让区块出现在第二颗子弹之后?
您可以使用 .build
属性
## Slide 1 {.build}
* this bullet point appears first
* this bullet point appears second
```{r eval=FALSE}
# This chunk appears third
```
此解决方案有一个小问题:在这张幻灯片上第一次前进时,不会显示任何内容。您必须前进两次才能出现第一个要点。
如何让 R 代码块以递增方式出现?
比如我在header中加入如下选项:
---
...other configurations...
output:
ioslides_presentation:
incremental: true
---
但是增量模式只适用于子弹,不适用于代码块
## Slide 1
* this bullet point appears first
* this bullet point appears second
```{r eval=FALSE}
# This chunk is there from the beginning
```
所以我的问题是: 如何让区块出现在第二颗子弹之后?
您可以使用 .build
属性
## Slide 1 {.build}
* this bullet point appears first
* this bullet point appears second
```{r eval=FALSE}
# This chunk appears third
```
此解决方案有一个小问题:在这张幻灯片上第一次前进时,不会显示任何内容。您必须前进两次才能出现第一个要点。