我有以下文档,我正在尝试使用 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
我在不同的主题上发现了类似的问题,但没有一个建议的解决方案对我有用......