I'm learning to use bookdown, and am using the bookdown demo on GitHub. In the index, there is a code chunk that explains how to build a bib database for packages. Would someone be able to help me understand what this is and how it works? The code is below. Is it to reference packages? What about packages used in other chapters of bookdown? I'm not sure what this is for in the index.
# automatically create a bib database for R packages
knitr::write_bib(c(
.packages(), 'bookdown', 'knitr', 'rmarkdown'
), 'packages.bib')
Thanks so much