我有以下文档,我正在尝试用Rstudio编译它:
---
title:
shorttitle:
author:
bibliography:
- library.bib
output: papaja::apa6_pdf
---
```{r message = FALSE, warning = FALSE}库(“papaja”)
apa_prepare_doc() #准备要呈现的文档
# Introduction
@Bakan1966
# References
```{r create_r-references}R_refs(文件= "r-references.bib")
当我运行knit时,它编译了.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我在不同的主题上发现了类似的问题,但提出的解决方案对我来说都不起作用……
发布于 2016-04-25 17:09:14
“已解决”。
问题出在我的library.bib文件中。
我是用Mendeley生成的,它插入了很多pandoc-citeproc不支持的特殊字符……
发布于 2018-05-06 20:40:25
这很可能是pandoc-citeproc的问题。要进行诊断,请手动运行rmarkdown::render,例如:rmarkdown::render(output_format = "html_document", input = your_vignette, clean = FALSE)
在我的例子中,我需要将.bib添加到vignette的YAML头中的bibliography: bibfile行。
发布于 2016-09-22 00:26:39
当我编织一个应用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之后,它工作得很好。
https://stackoverflow.com/questions/36826916
复制相似问题