Referring to links in rmd file and error in pandoc-citeproc.exe file
This is my first time I want to use quotes in my rmd file and I don't know how I can do it exactly. I converted my rmd file to a pdf document, but I have a problem in generating the link and bibliography. I am getting this error when knitting:
pandoc-citeproc.exe: Could not find bibliography.bib pandoc.exe: Error running filter pandoc-citeproc Filter returned error status 1 Error: Failed to convert pandoc document with error 83
This is my yaml context:
> title: "Context"
> author: "Minoo"
> date: "2017/06/06"
> output:
> pdf_document:
> toc: true
> toc_depth: 3
> bibliography: bibliography.bib
> vignette: >
> %\VignetteIndexEntry{Context}
> %\VignetteEngine{knitr::rmarkdown}
> %\VignetteEncoding{UTF-8}
and I have listed my quotes in the last part of my rmd file:
@article{@Csardi2006, Csardi G, Nepusz T: The igraph software package for complex network research, InterJournal, Complex Systems 1695. 2006. http://igraph.org}
@article{@Butts2015, Butts C (2015). network: Classes for Relational Data. The Statnet Project (http://statnet.org). R package version 1.13.0, http://CRAN.R-project.org/package=network.}
@article{@Butts2008, Butts C (2008). "network: a Package for Managing Relational Data in R." Journal of Statistical Software, 24(2). http://www.jstatsoft.org/v24/i02/paper.}
I either quote them in my contexts like [@ Csardi2006]. Any idea to resolve this issue? More specifically, how can I reference in the rmd file?
source to share
Perhaps you need to either put the bibliography.bib file in your working directory, or list your bibliography in your head, eg. for bibliography:
Bib file manually in an editor or using a program such as JabRef . There are also autogeneration methods, for example. Zotero :
% Encoding: UTF-8
@article{csardi2006,
author = {G, Csardi and T, Nepusz},
title = {The igraph software package for complex network research},
journal = {InterJournal, Complex Systems},
year = {2006},
url = {http://igraph.org},
}
@article{...}
@article{...}
Save it in your working directory as "bibliography.bib".
YAML metadata with bibliography:
---
title: "Context"
author: "Minoo"
date: "June 13, 2017"
output:
pdf_document: default
html_document: default
bibliography: bibliography.bib
---
Or YAML metadata with links included, eg. for quick documents:
---
title: "Context"
author: "Minoo"
date: "June 13, 2017"
output:
pdf_document: default
html_document: default
references:
- id: csardi2006
author:
- family: Csardi
given: G.
- family: Nepusz
given: T.
publisher: InterJournal, Complex Systems
title: The igraph software package for complex network research
type: article-journal
issued:
year: 2006
---
RMD text section:
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Text
Lorem ipsum dolor sit amet [@csardi2006], consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
## Biblio
source to share