2016-04-24 162 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