Gia*_*ear 39 r citations package stat
我使用R包'stats'(版本2.15.3)分析了我的数据.一位评论员问我这个包的正确引用,而不仅仅是普通的
R核心团队(2012年).R:统计计算的语言和环境.R统计计算基金会,奥地利维也纳.ISBN 3-900051-07-0,URL http://www.R-project.org/
有谁知道我在哪里可以找到有效的引文插入我的论文?谢谢
Die*_*nne 66
审稿人错了:
citation("stats")
The ‘stats’ package is part of R. 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. 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 = {2013},
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.
Run Code Online (Sandbox Code Playgroud)
MS *_*nds 12
正如hrbrmstr指出的那样,创建仅加载包的引用列表的函数会派上用场.由于他只向我们展示了一个例子,而不是函数,我自己写了一篇,我经常在科学分析和论文中使用(有时与R Markdown相结合).
citations <- function(includeURL = TRUE, includeRStudio = TRUE) {
if(includeRStudio == TRUE) {
ref.rstudio <- RStudio.Version()$citation
if(includeURL == FALSE) {
ref.rstudio$url = NULL;
}
print(ref.rstudio, style = 'text')
cat('\n')
}
cit.list <- c('base', names(sessionInfo()$otherPkgs))
for(i in 1:length(cit.list)) {
ref <- citation(cit.list[i])
if(includeURL == FALSE) {
ref$url = NULL;
}
print(ref, style = 'text')
cat('\n')
}
}
Run Code Online (Sandbox Code Playgroud)
所以,例如,跑完之后
library(readr)
library(dplyr)
library(ggplot2)
library(knitr)
Run Code Online (Sandbox Code Playgroud)
该功能 citations() 将打印:
RStudio团队(2016年).RStudio:R的集成开发环境.RStudio,Inc.,Boston,MA. http://www.rstudio.com.
R核心团队(2017年).R:统计计算的语言和环境.R统计计算基金会,奥地利维也纳.https://www.R-project.org.
谢Y(2016).knitr:R中动态报告生成的通用软件包.R包版本1.15.1,http://yihui.name/knitr.
谢毅(2015).带有R和knitr的动态文档,第2版.查普曼和霍尔/ CRC,佛罗里达州博卡拉顿.ISBN 978-1498716963,http://yihui.name/knitr.
谢毅(2014)."knitr:R中可重复研究的综合工具",Stodden V,Leisch F和Peng RD(编辑),实施可重复计算研究.查普曼和霍尔/ CRC.ISBN 978-1466561595,http: //www.crcpress.com/product/isbn/9781466561595 .
Wickham H(2009).ggplot2:用于数据分析的优雅图形.Springer-Verlag纽约.ISBN 978-0-387-98140-6,http://ggplot2.org.
Wickham H和Francois R(2016年).dplyr:数据操作的语法.R包版本0.5.0,https: //CRAN.R-project.org/package=dplyr .
Wickham H,Hester J和Francois R(2016).readr:读表格数据.R包版本1.0.0,https://CRAN.R-project.org/package=readr.
现在有一个grateful可以方便的包:
感恩的目标是让引用任何报告或出版物中使用的 R 包变得非常容易。通过调用单个函数,它将扫描项目中使用的 R 包,并以所需的输出格式(Word、PDF、HTML、Markdown)生成带有引文的文档。重要的是,这些参考文献可以针对特定期刊进行格式化,以便我们可以将它们直接粘贴到我们手稿或报告的参考书目列表中。
https://github.com/Pakilo/grateful
如果包stats被加载,则可以通过运行获取引用:
library(grateful)
cite_packages()
Run Code Online (Sandbox Code Playgroud)
— 假设grateful已经通过运行安装:
library(devtools)
install_github("Pakillo/grateful")
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
69606 次 |
| 最近记录: |