在 `_output.yml` 中,一些参数被忽略了

In `_output.yml`, some parameters are getting ignored

我在_output.yml中定义了某些pandoc选项:

```
author: "abc"
date: "`r format(Sys.time(), '%d %B, %Y')`"
```

但是,这些会被忽略,除非它们在 R Markdown 文件内的 YAML header 中定义。

这是否禁止包含在单独的 YAML 文件中?是这样吗,能否请您说说Markdown文件中还应该定义哪些参数呢

_output.yml 文件只能用于设置输出格式,如 bookdown book 中所述。因此,您可以指定与输出格式 (HTML/PDF/Word) 相关的任何内容,例如:

html_document:
  toc: TRUE
  theme: flatly
pdf_document:
  toc: FALSE

在您的示例中,您提供的参数是关于文档内容的。因此无法指定 authortitledatefontsize 之类的内容。

This issue has also been addressed within the GitHub issues of R Markdown for further reading.