{"id":77,"date":"2015-04-28T12:12:38","date_gmt":"2015-04-28T11:12:38","guid":{"rendered":"http:\/\/pcool.dyndns.org:8080\/statsbook\/?page_id=77"},"modified":"2025-06-25T19:14:59","modified_gmt":"2025-06-25T18:14:59","slug":"citating-r","status":"publish","type":"page","link":"https:\/\/pcool.dyndns.org\/index.php\/citating-r\/","title":{"rendered":"Citating R and Packages"},"content":{"rendered":"\n<p>Although the software is free to use, a lot of time and effort has been invested in creating it. Therefore, please cite the software if it has been used for data analysis.<\/p>\n\n\n\n<p><strong>To cite R<sup class='sup-ref-note' id='note-zotero-ref-p77-r1-o1'><a class='sup-ref-note' href='#zotero-ref-p77-r1'>1<\/a><\/sup><\/strong><\/p>\n\n\n\n<p>In the Console enter:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code><span style=\"color: #ff0000;\"><em>citation()<\/em><\/span><\/code><\/pre>\n\n\n\n<p>This returns:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#0600fe\" class=\"has-inline-color\">To cite R in publications use:\n\n  R Core Team (2025). _R: A Language and Environment for Statistical Computing_. R Foundation for Statistical Computing, Vienna, Austria. &lt;https:\/\/www.R-project.org\/&gt;.\n\nA BibTeX entry for LaTeX users is\n\n  @Manual{,\n    title = {R: A Language and Environment for Statistical Computing},\n    author = {{R Core Team}},\n    organization = {R Foundation for Statistical Computing},\n    address = {Vienna, Austria},\n    year = {2025},\n    url = {https:\/\/www.R-project.org\/},\n  }\n\nWe have invested a lot of time and effort in creating R, please cite it when using it for data analysis. See also \u2018citation(\"pkgname\")\u2019 for citing R packages.\n&gt;<\/mark><\/em><\/code><\/pre>\n\n\n\n<p><strong>To cite a package<\/strong><\/p>\n\n\n\n<p>If a package has been used, this should also be cited. For example the <a href=\"https:\/\/cran.r-project.org\/web\/packages\/survival\/index.html\" target=\"_blank\" rel=\"noopener\">survival package<\/a><sup class='sup-ref-note' id='note-zotero-ref-p77-r2-o1'><a class='sup-ref-note' href='#zotero-ref-p77-r2'>2<\/a><\/sup> package can be cited by entering in the Console:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code><span style=\"color: #ff0000;\"><em>citation('survival')<\/em><\/span><\/code><\/pre>\n\n\n\n<p>This returns:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code><em><span style=\"color: #0000ff;\">Therneau T (2024). _A Package for Survival Analysis in R_. R package version 3.8-3, &lt;https:\/\/CRAN.R-project.org\/package=survival&gt;.<\/span><\/em>\n<em><span style=\"color: #0000ff;\">Terry M. Therneau, Patricia M. Grambsch (2000). _Modeling Survival Data: Extending the Cox Model_. Springer, New York. ISBN 0-387-98784-3.<\/span><\/em>\n<em><span style=\"color: #0000ff;\">To see these entries in BibTeX format, use 'print(&lt;citation&gt;, bibtex=TRUE)', 'toBibtex(.)', or set 'options(citation.bibtex.max=999)'.<\/span><\/em><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Although the software is free to use, a lot of time and effort has been invested in creating it. Therefore, please cite the software if it has been used for data analysis. To cite R In the Console enter: This returns: To cite a package If a package has been used, this should also be [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-77","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pcool.dyndns.org\/index.php\/wp-json\/wp\/v2\/pages\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcool.dyndns.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pcool.dyndns.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pcool.dyndns.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pcool.dyndns.org\/index.php\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":6,"href":"https:\/\/pcool.dyndns.org\/index.php\/wp-json\/wp\/v2\/pages\/77\/revisions"}],"predecessor-version":[{"id":4258,"href":"https:\/\/pcool.dyndns.org\/index.php\/wp-json\/wp\/v2\/pages\/77\/revisions\/4258"}],"wp:attachment":[{"href":"https:\/\/pcool.dyndns.org\/index.php\/wp-json\/wp\/v2\/media?parent=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}