[英]R markdown ioslides incremental mode for code chunks
How do you turn R code chunks to appear incrementally? 如何将R代码块逐渐显示?
For example, I put the following option in the header: 例如,我在标题中添加了以下选项:
---
...other configurations...
output:
ioslides_presentation:
incremental: true
---
But the incremental mode only applies to bullets and not to the code chunks 但增量模式仅适用于项目符号,而不适用于代码块
## Slide 1
* this bullet point appears first
* this bullet point appears second
```{r eval=FALSE}
# This chunk is there from the beginning
```
So my question is : How do you make the chunk appear after the second bullet? 所以我的问题是:你如何在第二颗子弹后出现这个块?
You can use the .build
attribute 您可以使用.build
属性
## Slide 1 {.build}
* this bullet point appears first
* this bullet point appears second
```{r eval=FALSE}
# This chunk appears third
```
There is a minor problem to this solution: On your first advancement on this slide, nothing will be displayed. 此解决方案存在一个小问题:在此幻灯片上的第一个进度中,不会显示任何内容。 You have to advance twice to make the first bullet point appear. 您必须前进两次才能显示第一个项目符号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.