Most of the time my R version and packages are reasonably up to date. Now I wonder what year to cite when using citation("somepackage")
. Basically all packages are 2012 then. How can I find out the real date when they first came up? Or should I really cite the most recent version?
citation() To cite R in publications use: R Core Team (2013). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL http://www.R-project.org/.
You should provide separate citations for R, RStudio, and the packages you use. To get the citation for the version of R you are using, simply run the citation() function which will always provide you with the most recent citation. ## ## To cite R in publications use: ## ## R Core Team (2021).
R is a language so it is, perhaps, less important to cite it. But if it has features that are important to your work, cite it.
🔗 How to cite R ## ## To cite R in publications use: ## ## 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/.
The norm in the medical field seems to be to cite something like this in the text:
We used Stata version 9.2 (Stata Corporation, East Nowhere, Texas, 2006).
That norm argues for citing the year of the version you actually used. And, in my view it makes sense if you want subsequent authors to be able to replicate your results.
There's a whole emerging field that's trying to figure out how to cite things other than papers (see, for example Heather Piwowar's work). If there's a Journal of Statistical Software article on the R version you want (more likely for packages than for base R), you could cite that. Or cite the R Journal's updates for the relevant version.
Why doesn't anybody mention the obvious? There is a citation()
command in R itself:
edd@max:~$ R --silent -e 'citation()'
R> citation()
To cite R in publications use:
R Core Team (2012). R: A language and environment for statistical computing.
R Foundation for Statistical Computing, Vienna, Austria.
ISBN 3-900051-07-0, URL http://www.R-project.org/.
A BibTeX entry for LaTeX users is
@Manual{,
title = {R: A Language and Environment for Statistical Computing},
author = {{R Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2012},
note = {{ISBN} 3-900051-07-0},
url = {http://www.R-project.org/},
}
We have invested a lot of time and effort in creating R, please cite it
when using it for data analysis. See also ‘citation("pkgname")’ for citing
R packages.
R>
R>
edd@max:~$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With