我有以下的文件,我試圖用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