How can I add a bibliography with knitr

I am trying to create a .docx file from rmd using knitr / pandoc inside RStudio. But I get status 83 as before, and I cannot resolve the status message. Any suggestions or help would be nice. Many thanks. Sebastian

system(paste0("pandoc -o ", name, ".docx ", name, ".md --bibliography sukstorf.bib"))
pandoc-citeproc: "stdin" (line 421, column 2):
unexpected "O"
expecting "c", "C", "p", "P", "s" or "S"
pandoc.exe: Error running filter pandoc-citeproc
Warning message:
running command 'pandoc -o hr-statistik-mit-r.docx hr-statistik-mit-r.md --bibliography sukstorf.bib' had status 83
+4
source share
2 answers

Pretty sure you need to --bibliography sukstorf.bibbe--bibliography=sukstorf.bib

0
source

I just had the same problem "bibliography ... had the status 83": it turns out that it was a syntax error in one of the entries in the .bib file. I found it by deleting the entries from the .bib at a time and knitting it again until I click the one that generates the error.

0

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


All Articles