带有Rmarkdown文件的pandoc-citeproc错误83

Lad*_*zyk 12 markdown r pandoc rstudio papaja

我有以下文档,我试图用Rstudio编译:

---
title:
shorttitle:
author: 

bibliography:
  - library.bib

output: papaja::apa6_pdf
---

```{r message = FALSE, warning = FALSE}
library("papaja")
apa_prepare_doc() # Prepare document for rendering
```
# Introduction

@Bakan1966

# References
```{r create_r-references}
r_refs(file = "r-references.bib")
```
Run Code Online (Sandbox Code Playgroud)

当我运行knit时,它会编译.md文件,但是pandoc会出错:

pandoc-citeproc: "stdin" (line 232, column 2):
unexpected "a"
expecting "c", "C", "p", "P", "s" or "S"
pandoc: Error running filter /Applications/RStudio.app/Contents/MacOS/pandoc/pandoc-citeproc
Error: pandoc document conversion failed with error 83
In addition: Warning messages:
1: In yaml::yaml.load(enc2utf8(string), ...) :
  NAs introduced by coercion: 1,2,3 is not an integer
2: In yaml::yaml.load(enc2utf8(string), ...) :
  NAs introduced by coercion: 1,2,3 is not an integer
Execution halted
Run Code Online (Sandbox Code Playgroud)

我在不同的主题上发现了类似的问题,但没有提出的解决方案对我有用...

Lad*_*zyk 12

"解决了".

问题来自我的library.bib文件.

我使用Mendeley生成它,它插入了许多pandoc-citeproc不支持的特殊字符...