Hi all,
I am trying to make a PDF document using R markdown that contains references using Bibtex. When I knit the markdown file, I get a PDF, but the references section is blank. My yaml heading is as follows:
---
title: "help_bibliography"
author: "Maria Burzillo"
date: "2/28/2020"
output: bookdown::pdf_document2
bibliography: bib.bib
biblio-style: "apalike"
link_citations: true
---
My bib.bib file is included in the repo and is as follows:
% Encoding: UTF-8
@Manual{R-knitr,
title = {knitr: A General-Purpose Package for Dynamic Report
Generation in R},
author = {Yihui Xie},
year = {2020},
note = {R package version 1.27},
url = {https://CRAN.R-project.org/package=knitr},
}
@Manual{R-stringr,
title = {stringr: Simple, Consistent Wrappers for Common
String Operations},
author = {Hadley Wickham},
year = {2019},
note = {R package version 1.4.0},
url = {https://CRAN.R-project.org/package=stringr},
}
@Book{knitr2015,
title = {Dynamic Documents with {R} and knitr},
author = {Yihui Xie},
publisher = {Chapman and Hall/CRC},
address = {Boca Raton, Florida},
year = {2015},
edition = {2nd},
note = {ISBN 978-1498716963},
url = {https://yihui.org/knitr/},
}
@InCollection{knitr2014,
booktitle = {Implementing Reproducible Computational
Research},
editor = {Victoria Stodden and Friedrich Leisch and Roger D.
Peng},
title = {knitr: A Comprehensive Tool for Reproducible
Research in {R}},
author = {Yihui Xie},
publisher = {Chapman and Hall/CRC},
year = {2014},
note = {ISBN 978-1466561595},
url = {http://www.crcpress.com/product/isbn/9781466561595},
}
I read the answers to the related question on Github and ran the reproducible example on my computer, which worked when the output was the original and also when I set the output to bookdown::pdf_document2, which I need for my project. Any ideas? I have no idea why this isn't working. Thank you!