r if (knitr:::is_html_output()) '# References {-}'
# generate a BibTeX database automatically for some R packages knitr::write_bib(c( .packages(), 'bookdown', 'knitr', 'rmarkdown' ), 'packages.bib')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.