Pandoc-citeproc 83 error with Rmarkdown file

I have the following document that I am trying to compile with 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") ``` 

When I run knit, it compiles the .md file, but pandoc gives an error:

 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 

I found similar problems on different topics, but none of the proposed solutions worked for me ...

+5
source share
2 answers

"solved".

The problem arises from my library.bib file.

I generated it using Mendeley, which inserted a lot of special characters that are not supported by pandoc-citeproc ...

+5
source

I encountered error 83 when I inserted the rmarkdown file that arules::apriori() .

 --- 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 --- 

Its performance after deleting the line: bibliography: skeleton.bib .

+1
source

Source: https://habr.com/ru/post/1247824/


All Articles