【发布时间】:2021-05-24 12:00:07
【问题描述】:
在r-markdown 中是一个将title: 移出主要yaml、as described in the R Markdown Cookbook 的选项。
但是,在xaringan 幻灯片设置中,新的--- 似乎与新幻灯片的想法相冲突。
下面的代码有效,但是当将第 2 行 title: "Presentation Ninja" 移到主 yaml 之外,并将其插入为 title: "The name of the dog is r dog_name!",通过删除我在第 17 行中的所有 <!-- ... --> 代码-19,它无法正常工作。我不再得到标题页。我想我需要解决xaringan 中的---?
任何帮助将不胜感激!
---
title: "Presentation Ninja"
subtitle: "⚔<br/>with xaringan"
author: "Yihui Xie"
output:
xaringan::moon_reader:
lib_dir: libs
---
# xaringan set the document title dynamically
```{r, code=xfun::read_utf8('script_with_many_dog_names.R')}
```
The name of the dog is `r dog_name`!
<!-- --- -->
<!-- title: "The name of the dog is `r dog_name`!" -->
<!-- --- -->
Some bullets
- Foo
- Bar
【问题讨论】:
标签: r-markdown yaml xaringan yaml xaringan r dynamic r-markdown slideshow xaringan