rr-markdownknitrbookdownpandoc-citeproc

How to include references and bibliography list using bookdown word_document_2?


I am trying to include bibliographic citations and a list of references in a MS Word file generated with Rmarkdown bookdown. However, I get the following message in the RMarkdown terminal: “pandoc-citeproc: reference Rbase not found”, where Rbase is the id of the cited material.

Although the MS Word file is generated, the citation is not recognised as such in the introduction (instead it shows “[@Rbase]”, nor the list of references is displayed (see image attached).

This is my .Rmd file:

---
title: "Report with Rmarkdown"
output: 
  bookdown::word_document2:
  bibliography: references.bib
---

# Introduction

This is my introduction [@Rbase].

# References

This is the content of the file references.bib (UTF-8), which is located in the same folder as the .Rmd file.

@manual{Rbase,
title = {R: A Language and Environment for Statistical Computing},
author = {{R Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2016},
url = {https://www.R-project.org/},
}

Can anyone provide any insight on how to make the citation and list of references visible?

Thank you very much in advance, Carmen


Solution

  • Solved by 'markdly' in the comments: Removal of the leading spaces before 'bibliography: references.bib' in .Rmd file.