gpt4 book ai didi

r - xaringan 幻灯片分隔符不分离幻灯片

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

在这个例子中 xaringan介绍,为什么都是## blank pageleaflet映射在同一张幻灯片上,因为我已经用新幻灯片分隔符将它们分开 --- ?

---
title: "map test"
output:
xaringan::moon_reader:
css: ["default"]
nature:
highlightLines: true
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```


## blank page

content

---

leaflet page

```{r}
library(leaflet)
leaflet() %>%
addTiles()

```

---

enter image description here

最佳答案

看起来你在空白内容之后的新幻灯片分隔符之后有一个意外的空间为“---”。删除该空间,它将被识别为真正的幻灯片分隔符:

---
title: "map test"
output:
xaringan::moon_reader:
css: ["default"]
nature:
highlightLines: true
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```


## blank page

content

---

leaflet page

```{r}
library(leaflet)
leaflet() %>%
addTiles()

```

---

关于r - xaringan 幻灯片分隔符不分离幻灯片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51120186/

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