【发布时间】:2021-05-13 05:47:08
【问题描述】:
我正在尝试在 Rmarkdown 中输出一个 beamer_presentation,我想在其中显示一个代码块,然后在单击时将图形显示为该代码块的结果。我知道“xarigan”包允许这个相当简单(--),但我更喜欢使用基本 Rmarkdown,以实现重现性目的。
例子:
---
title: "Untitled"
author: "BP"
output: beamer_presentation
---
## Slide with Bullets
- Making a plot
```{r cars, echo= TRUE}
plot(cars$speed, cars$distance)
```
理想情况下,演示文稿将显示项目符号和代码块,然后逐步构建情节。
谢谢
【问题讨论】:
-
你能发一个minimal reproducible example吗?
-
我相信我已经编辑了代码块来这样做!
标签: latex r-markdown beamer presentation