Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R citation which year to cite?

Tags:

r

citations

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?

like image 569
Matt Bannert Avatar asked Jan 26 '13 10:01

Matt Bannert


People also ask

How do you cite R in APA 7?

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/.

How do you cite R software in APA?

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).

Should R be cited?

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 do you cite R in text citations?

🔗 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/.


2 Answers

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.

like image 55
Ari B. Friedman Avatar answered Oct 18 '22 09:10

Ari B. Friedman


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:~$ 
like image 40
Dirk Eddelbuettel Avatar answered Oct 18 '22 09:10

Dirk Eddelbuettel