r语言 - 不显示 RMarkdown 内联引用



我想在我的 RMD 中创建一个内联引用列表,如 https://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html 中所述。 不幸的是,引用没有显示。我在 rmd 中的代码:

---
output: pdf_document
references:
- id: fenner2012a
title: One-click science marketing
author:
- family: Fenner
given: Martin
container-title: Nature Materials
volume: 11
URL: 'http://dx.doi.org/10.1038/nmat3283'
DOI: 10.1038/nmat3283
issue: 4
publisher: Nature Publishing Group
page: 261-263
type: article-journal
issued:
year: 2012
month: 3
---
According to
https://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html
I should have the example reference below
# References 

有人知道我能做些什么来让它展示吗?它以前确实有效,不知道这是否是在升级到 R4 之前。所有软件包都是最新的(刚刚进行了更新(。RStudio 版本 1.2.5042。谢谢!

这对你有用吗? ;)

---
output: pdf_document
references:
- id: fenner2012a
title: One-click science marketing
author:
- family: Fenner
given: Martin
container-title: Nature Materials
volume: 11
URL: 'http://dx.doi.org/10.1038/nmat3283'
DOI: 10.1038/nmat3283
issue: 4
publisher: Nature Publishing Group
page: 261-263
type: article-journal
issued:
year: 2012
month: 3
---
According to
https://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html
I should have the example reference below
But only if we use the reference: [@fenner2012a]

# References 

最新更新