rOpenSci | How to Cite R and R Packages

I teach R to a lot of scientists, those that are new to science (i.e. students) as well as more established scientists, new to R. I find that after all their struggles of dealing with dates, or remembering where to put the comma, they’re so grateful to actual have an analysis, that they often forget or aren’t aware of the next steps.


This is a companion discussion topic for the original entry at https://ropensci.org/blog/2021/11/16/how-to-cite-r-and-r-packages/

Thanks for a great post!

I find the report package worth mentioning, only discovered it very recently:

library(dplyr)
report::cite_packages()

##  - Hadley Wickham, Romain François, Lionel Henry and Kirill Müller (2021). dplyr: A Grammar of Data Manipulation. R package version 1.0.7. https://CRAN.R-project.org/package=dplyr
##  - R Core Team (2021). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL https://www.R-project.org/.

# More functions ...

report::report_system()
## Analyses were conducted using the R Statistical language (version 4.1.2; R Core Team, 2021) on Windows 10 x64 (build 19044)

report::report_packages()
##  - dplyr (version 1.0.7; Hadley Wickham et al., 2021)
##  - R (version 4.1.2; R Core Team, 2021)
2 Likes