r if (grepl('html|epub', knitr:::pandoc_to())) '# References{-#references}'
r if (grepl('doc', knitr:::pandoc_to())) '# References'
### Needed to incldue Bosman_2016 here because only used in block2 where ### execution of R code, i.e. calling: knitcitations::citep() is not possible! all_citations <- c(knitcitations:::get_bib(), manual["Bosman_2016"]) knitcitations::write.bibtex(entry = all_citations, file = "references.bib")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.