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

标签 r rstudio markdown pandoc 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")
```

当我运行 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

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

最佳答案

“解决了”。

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

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

关于r - 带有 Rmarkdown 文件的 pandoc-citeproc 错误 83,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36826916/

相关文章:

php - 安装linux raspberry的mysql-server失败(没有剩余空间)

r - 如何将特定长度和数量的随机连续间隙插入向量中?

list - GitHub markdown 项目符号在 Chrome 中不显示

javascript - 如何关闭 highlight.js 中的自动语言检测并呈现所有 block ?

r - 从 RStudio 编织 PDF 文件

r - 在 R 中创建许多 ROC 曲线?

从命令行运行 R 脚本

r - For 循环需要永远运行

git push -u origin master 失败,遇到权限被拒绝的问题

apache-spark - 在本地 RStudio 上使用 Sparklyr 和 apache 集群