R 包的 CRAN 提交中的 DOI?
Posted
技术标签:
【中文标题】R 包的 CRAN 提交中的 DOI?【英文标题】:DOI in CRAN submission of R package? 【发布时间】:2020-03-02 16:44:50 【问题描述】:在向 CRAN 提交一个 R 包后,我收到了以下建议之一:
“是否有一些关于您可以在作者(年份)表格中的描述字段中添加的方法的参考?”
在进行了一些搜索之后,我并没有真正找到任何人将 DOI 放入描述文件中的实例,除了可能在 CITATION 文件中,但这似乎不是这里所要求的。请问我该如何解决这个问题?提前致谢!
【问题讨论】:
一个例子here。 另一个example 我搜索了“r package doi”并找到了this one等。该包的 CRAN 页面是第三个结果 【参考方案1】:您的搜索可能是肤浅的。将其限制为我可能在此处安装的内容的子集,以便我可以 grep:
edd@rob:~$ grep -l "<doi:.*>" /usr/local/lib/R/site-library/*/DESCRIPTION
/usr/local/lib/R/site-library/acepack/DESCRIPTION
/usr/local/lib/R/site-library/arules/DESCRIPTION
/usr/local/lib/R/site-library/datasauRus/DESCRIPTION
/usr/local/lib/R/site-library/ddalpha/DESCRIPTION
/usr/local/lib/R/site-library/DEoptimR/DESCRIPTION
/usr/local/lib/R/site-library/distr6/DESCRIPTION
/usr/local/lib/R/site-library/dqrng/DESCRIPTION
/usr/local/lib/R/site-library/earth/DESCRIPTION
/usr/local/lib/R/site-library/fastglm/DESCRIPTION
/usr/local/lib/R/site-library/fields/DESCRIPTION
/usr/local/lib/R/site-library/HardyWeinberg/DESCRIPTION
/usr/local/lib/R/site-library/jomo/DESCRIPTION
/usr/local/lib/R/site-library/lava/DESCRIPTION
/usr/local/lib/R/site-library/loo/DESCRIPTION
/usr/local/lib/R/site-library/lpirfs/DESCRIPTION
/usr/local/lib/R/site-library/mcmc/DESCRIPTION
/usr/local/lib/R/site-library/mice/DESCRIPTION
/usr/local/lib/R/site-library/party/DESCRIPTION
/usr/local/lib/R/site-library/plm/DESCRIPTION
/usr/local/lib/R/site-library/praznik/DESCRIPTION
/usr/local/lib/R/site-library/Rcpp/DESCRIPTION
/usr/local/lib/R/site-library/RcppSMC/DESCRIPTION
/usr/local/lib/R/site-library/RcppZiggurat/DESCRIPTION
/usr/local/lib/R/site-library/RProtoBuf/DESCRIPTION
/usr/local/lib/R/site-library/spam/DESCRIPTION
/usr/local/lib/R/site-library/SQUAREM/DESCRIPTION
/usr/local/lib/R/site-library/stabs/DESCRIPTION
/usr/local/lib/R/site-library/tweedie/DESCRIPTION
/usr/local/lib/R/site-library/xgboost/DESCRIPTION
edd@rob:~$
而且,简单来说,这里是实际结果集的前十行:
edd@rob:~$ grep -h "<doi:.*>" /usr/local/lib/R/site-library/*/DESCRIPTION | head -10
80:580-598. <doi:10.1080/01621459.1985.10478157>].
<doi:10.1080/01621459.1988.10478610>]. A good introduction to these two methods is in chapter 16 of
See Christian Borgelt (2012) <doi:10.1002/widm.1074>.
<doi:10.1145/3025453.3025912>.
Description: Contains procedures for depth-based supervised learning, which are entirely non-parametric, in particular the DDalpha-procedure (Lange, Mosler and Mozharovskyi, 2014 <doi:10.1007/s00362-012-0488-4>). The training data sample is transformed by a statistical depth function to a compact low-dimensional space, where the final classification is done. It also offers an extension to functional data and routines for calculating certain notions of statistical depth functions. 50 multivariate and 5 functional classification problems are included. (Pokotylo, Mozharovskyi and Dyckerhoff, 2019 <doi:10.18637/jss.v091.i05>).
Brest et al. (2006) <doi:10.1109/TEVC.2006.872133>.
Description: An R6 object oriented distributions package. Unified interface for 42 probability distributions and 11 kernels including functionality for multiple scientific types. Additionally functionality for composite distributions and numerical imputation. Design patterns including wrappers and decorators are described in Gamma et al. (1994, ISBN:0-201-63361-2). For quick reference of probability distributions including d/p/q/r functions and results we refer to McLaughlin, M. P. (2001). Additionally Devroye (1986, ISBN:0-387-96305-7) for sampling the Dirichlet distribution, Gentle (2009) <doi:10.1007/978-0-387-98144-4> for sampling the Multivariate Normal distribution and Michael et al. (1976) <doi:10.2307/2683801> for sampling the Wald distribution.
proposed by Marsaglia and Tsang (2000, <doi:10.18637/jss.v005.i08>).
Threefry engine (Salmon et al., 2011 <doi:10.1145/2063384.2063405>) as
Splines" <doi:10.1214/aos/1176347963>.
edd@rob:~$
【讨论】:
@Alan:请不要那样做。您插入了改变含义的段落,我相信显示 shell 命令的 shell 提示的风格。所以我滚动了那个bacl。如果您对这种风格感到非常生气,请随时在评论中说出来,添加一个新的答案——但请不要做出不协调的更改。感谢您的理解。 为什么不呢?它显着提高了输出的可读性。 美在旁观者的眼中。这是一个非常主观的说法。我在这里给出了数千个答案,包括许多用于 shell,其他用于 R,... 提示增加了清晰度。请随意在你的答案中省略它,但请允许我坚持我所相信的以及 OP 已经接受的内容。 很公平。我认为它降低了易读性并使得将命令复制到终端变得不必要地困难。我强烈反对说我改变了意思或改变不协调。感谢您的澄清 这是我的 shell 终端显示的文字副本。还有什么更清楚的?您添加的换行符不存在或出现在那里->您改变了我认为低劣的现实。并且没有事先讨论或达成一致 --> 不协调。无论如何,现在继续。再次感谢您的理解。以上是关于R 包的 CRAN 提交中的 DOI?的主要内容,如果未能解决你的问题,请参考以下文章
如何创建R包并将其发布在 CRAN / GitHub 上--转载