如何使用 rmarkdown 添加引用
How do I add citations using rmarkdown
我在使引用在 rmarkdown 中工作时遇到了一些问题。
我使用 write_bib()
生成一个似乎有效的参考书目文件。
knitr::write_bib("knitr", "package.bib")
@Manual{R-knitr,
title = {knitr: A General-Purpose Package for Dynamic Report Generation in R},
author = {Yihui Xie},
year = {2020},
note = {R package version 1.29},
url = {https://CRAN.R-project.org/package=knitr},
}
然而,当我尝试在文档中使用它时,就像这样。
---
title: "Example"
output: html_document
Bibliography: package.bib
---
[@R-knitr]
我明白了
我想我遗漏了什么,但我不知道是什么。
在此先感谢您的帮助。
Rmarkdown 元数据 are formatted in YAML,区分大小写。正确的格式是
---
title: "Example"
output: html_document
bibliography: package.bib
---
我在使引用在 rmarkdown 中工作时遇到了一些问题。
我使用 write_bib()
生成一个似乎有效的参考书目文件。
knitr::write_bib("knitr", "package.bib")
@Manual{R-knitr,
title = {knitr: A General-Purpose Package for Dynamic Report Generation in R},
author = {Yihui Xie},
year = {2020},
note = {R package version 1.29},
url = {https://CRAN.R-project.org/package=knitr},
}
然而,当我尝试在文档中使用它时,就像这样。
---
title: "Example"
output: html_document
Bibliography: package.bib
---
[@R-knitr]
我明白了
我想我遗漏了什么,但我不知道是什么。
在此先感谢您的帮助。
Rmarkdown 元数据 are formatted in YAML,区分大小写。正确的格式是
---
title: "Example"
output: html_document
bibliography: package.bib
---