How do you turn R code chunks to appear incrementally?
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?
Chunk options The initial line in a code chunk may include various options. For example, echo=FALSE indicates that the code will not be shown in the final document (though any results/output would still be displayed). You use results="hide" to hide the results/output (but here the code would still be displayed).
Slidy has more flexibility than ioslides as to appearance and style.
You can use the .build
attribute
## 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With