2016-04-24 75 views
5

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

我發現圍繞不同的主題類似的問題,但沒有提出的解決方案的工作對我來說...

回答

5

「解決」。

問題來自我的library.bib文件。

我一直在使用Mendeley,其中插入了大量的不受pandoc-citeproc支持的特殊字符產生它...

+0

我可以得到基地,芝加哥風格,引用工作:http://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html#citation_styles,但無法獲得任何額外的.csl文件的工作。你有沒有運氣讓.csl工作? – symbiotic

+0

就我個人而言,我在我的一篇引文中丟失了逗號分隔標籤條目 - 更廣泛的教訓是它可能是.bib文件中的語法錯誤。您可以通過[刪除.bib文件中的@ @ s](https://tex.stackexchange.com/questions/21709/comments-in-bibtex)並重新編譯來縮小錯誤的來源('pandoc'會迭代地發出一個未被發現的引用警告,但沒有錯誤) – MichaelChirico

1

針織適用arules::apriori()一個rmarkdown文件時,我遇到了錯誤83。

--- 
title: "[**Pattern Discovery in Data Mining** *Programming Assignment: Frequent Itemset Mining Using Apriori*](https://www.coursera.org/learn/data-patterns)" 
subtitle: "[**Data Mining** *by University of Illinois at Urbana-Champaign*](https://www.coursera.org/specializations/data-mining)" 
author: "[®γσ, Eng Lian Hu](http://englianhu.wordpress.com) <img src='figure/ShirotoNorimichi2.jpg' width='24'> 白戸則道®" 
date: "`r Sys.Date()`" 
output: 
    tufte::tufte_html: 
    toc: yes 
    tufte::tufte_handout: 
    citation_package: natbib 
    latex_engine: xelatex 
    tufte::tufte_book: 
    citation_package: natbib 
    latex_engine: xelatex 
bibliography: skeleton.bib 
link-citations: yes 
--- 

在我刪除該行後,它的工作正常:bibliography: skeleton.bib