# How to Cite in R Markdown - Citr Try out

## 2019/03/27

### This post documents my try out of the citr package in r:

⬇️ tweet from the package author

I'm getting ready to submit a new release of citr to CRAN. It features improved @Zotero integration and a prettified interface. Take it for a spin and let me know what doesn't work. https://t.co/9m5tkGPZGw #rstats #rmarkdown #bookdown pic.twitter.com/WvsVhKpxQg

— Frederik Aust (@FrederikAust) November 22, 2018

• step1: transfer my collection from EndNote to Zotero in the format of bibtex (do not forget to set a bibtex option in EndNote because it usually does not show in the menu. We can find the option through edit → output styles → new style…)
• step 2: install addin Better BibTeX for Zotero
• step 3: install citr package in rstudio devtools::install_github("crsh/citr") (github repo)
• step 4: we can change the citation style by placing an extra code in YAML, such as csl: american-journal-of-epidemiology.csl (Sources for csl files) The downloaded csl file should be saved in the same folder as where the rmd file lives
• amazing post about reproducible work and writing in R