我有以下的文件,我试图用Rstudio编译:pandoc-citeproc错误83 Rmarkdown文件
---
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")
```
当我运行针织,它编译.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
我发现围绕不同的主题类似的问题,但没有提出的解决方案的工作对我来说...
我可以得到基地,芝加哥风格,引用工作:http://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html#citation_styles,但无法获得任何额外的.csl文件的工作。你有没有运气让.csl工作? – symbiotic
就我个人而言,我在我的一篇引文中丢失了逗号分隔标签条目 - 更广泛的教训是它可能是.bib文件中的语法错误。您可以通过[删除.bib文件中的@ @ s](https://tex.stackexchange.com/questions/21709/comments-in-bibtex)并重新编译来缩小错误的来源('pandoc'会迭代地发出一个未被发现的引用警告,但没有错误) – MichaelChirico