gpt4 book ai didi

r - 选择某些元素以逐步构建 ioslides

转载 作者:行者123 更新时间:2023-12-01 05:01:15 25 4
gpt4 key购买 nike

我正在使用 RStudio 中的 ioslides 构建演示文稿。
我有以下幻灯片:

```{r, echo=FALSE}
logo<-"logo.jpg"
```

## Playing with R
<IMG style="position:absolute;top:5.5%;right:5%;width:140px;"SRC="`r logo`">

Type in the interactive console:

```{r, eval=FALSE}
x <- 1:10 # "name <- value returns the value invisibly"
```
```{r, eval=FALSE}
getwd()
```

我只希望代码块以增量方式出现,文本以及 Logo 不出现。我尝试使用 <div class="incremental"> </div> ,但这不起作用。移动到幻灯片时,元素已经放置在幻灯片上。使用 {.build} 选项使每个元素都以增量方式出现,这是我想要避免的。

有什么建议我可以通过什么方式只选择幻灯片上的某些元素以递增显示?

最佳答案

正如您所提到的,您可以使用 {.build} 逐步构建幻灯片
(另见 http://rmarkdown.rstudio.com/ioslides_presentation_format.html#build_slides)。
应该可以使用 div 元素将要构建的部分组合在一起:

```{r, echo=FALSE}
logo<-"logo.jpg"
```

## Playing with R {.build}

<div>
<IMG style="position:absolute;top:5.5%;right:5%;width:140px;"SRC="`r logo`">

Type in the interactive console:
</div>

```{r, eval=FALSE}
x <- 1:10 # "name <- value returns the value invisibly"
```

```{r, eval=FALSE}
getwd()
```

关于r - 选择某些元素以逐步构建 ioslides,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32394504/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com