首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pandoc-citeproc Rmarkdown文件错误83

pandoc-citeproc Rmarkdown文件错误83
EN

Stack Overflow用户
提问于 2016-04-25 02:02:57
回答 4查看 16.7K关注 0票数 15

我有以下文档,我正在尝试用Rstudio编译它:

代码语言:javascript
复制
---
title:
shorttitle:
author: 

bibliography:
  - library.bib

output: papaja::apa6_pdf
---

```{r message = FALSE, warning = FALSE}

库(“papaja”)

apa_prepare_doc() #准备要呈现的文档

代码语言:javascript
复制
# Introduction

@Bakan1966

# References
```{r create_r-references}

R_refs(文件= "r-references.bib")

代码语言:javascript
复制

当我运行knit时,它编译了.md文件,但pandoc给出了一个错误:

代码语言:javascript
复制
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

我在不同的主题上发现了类似的问题,但提出的解决方案对我来说都不起作用……

EN

回答 4

Stack Overflow用户

发布于 2016-04-25 17:09:14

“已解决”。

问题出在我的library.bib文件中。

我是用Mendeley生成的,它插入了很多pandoc-citeproc不支持的特殊字符……

票数 16
EN

Stack Overflow用户

发布于 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行。

票数 4
EN

Stack Overflow用户

发布于 2016-09-22 00:26:39

当我编织一个应用arules::apriori()的rmarkdown文件时,我遇到了错误83。

代码语言:javascript
复制
---
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之后,它工作得很好。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36826916

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档