使用RefManageR从引用Rmd生成引用时出错

使用RefManageR从引用Rmd生成引用时出错,r,pdf-generation,r-markdown,R,Pdf Generation,R Markdown,我正在尝试使用RefManageR设置PDF报告中引用的格式。以下test.Rmd代码根据我处理它的方式产生不同的结果: --- title: "Test bib" output: pdf_document: latex_engine: xelatex citation_package: biblatex --- # References ```{r setup, include = FALSE, cache = FALSE} library(RefManageR) B

我正在尝试使用
RefManageR
设置PDF报告中引用的格式。以下
test.Rmd
代码根据我处理它的方式产生不同的结果:

---
title: "Test bib"
output:
  pdf_document:
    latex_engine: xelatex
    citation_package: biblatex
--- 

# References

```{r setup, include = FALSE, cache = FALSE}
library(RefManageR)
BibOptions(cite.style = "authoryear", bib.style = "authoryear", no.print.fields = c("url"), check.entries = FALSE, style = "markdown")
zbib <- ReadZotero(group = "130380", 
                   .params = list(collection = "MYKE5653"))
```

# Citations

This is an example of a citation in the text `r Cite(zbib, "warner_development_2016")`.   
`r Cite(zbib, "tang_development_2016")` an other citation.

# References
```{r results='asis', echo=FALSE}
PrintBibliography(zbib)
```
---
标题:“测试围嘴”
输出:
pdf\U文件:
乳胶引擎:Xeletex
引文包:biblatex
--- 
#参考资料
```{r setup,include=FALSE,cache=FALSE}
图书馆(参考文献管理器)
bib选项(cite.style=“authoryear”,bib.style=“authoryear”,no.print.fields=c(“url”),check.entries=FALSE,style=“markdown”)

zbib可能会有所帮助?使用Rmarkdown bibliograpy:选项不允许直接连接到Zotero。我尝试将“引擎”和“引文包”分别改为“Xeletex”和“biblatex”。我在其他方面做了一些改进,尽管参考文献列表还不限于我使用的引文。你读过RefManageR软件包的小插曲吗?是的,我从那里开始。本手册规定,
print书目()
将“……仅打印已引用的参考文献……”。使用“knit”按钮生成的参考列表(我只有html选项)是正确的,但是对
pdf\u文档的请求被忽略。要生成在YAML标题中指定的.pdf,我必须使用
rmarkdown::render()
,并且列表不再限于引用的引用。