gpt4 book ai didi

r - R 2.XX.Y 中的核心包

转载 作者:行者123 更新时间:2023-12-03 18:27:00 25 4
gpt4 key购买 nike

我想知道如何知道 R 2.XX.Y 中哪些包是核心.假设我安装。 R 2.14.1那么这个版本会附带哪些软件包。谢谢

最佳答案

1)您可以查看来源。

2)问题甚至不清楚,因为包含以及​​推荐的库。大多数人会将您的问题理解为要求两组。

3) 在 Debian 上,我们拆分了安装目录,这样可以很容易地回答问题 2):

edd@max:~$ ls /usr/lib/R/library/         ## 
base datasets lattice nnet stats4
boot foreign MASS parallel survival
class graphics Matrix rpart tcltk
cluster grDevices methods spatial tools
codetools grid mgcv splines utils
compiler KernSmooth nlme stats

4)查看源代码可以区分真实默认值和推荐值:(这些是来自版本化 tarball 的软链接(soft link))
edd@max:~$ COLUMNS=60 ls ~/src/debian/R/R-2.14.1/src/library/
base grDevices methods splines tools
compiler grid parallel stats utils
datasets Makefile.in profile stats4
graphics Makefile.win Recommended tcltk


edd@max:~$ COLUMNS=60 ls ~/src/debian/R/R-2.14.1/src/library/Recommended/
boot_1.3-3.tar.gz MASS_7.3-16.tar.gz
boot.tgz MASS.tgz
class_7.3-3.tar.gz Matrix_1.0-2.tar.gz
class.tgz Matrix.tgz
cluster_1.14.1.tar.gz mgcv_1.7-12.tar.gz
cluster.tgz mgcv.tgz
codetools_0.2-8.tar.gz nlme_3.1-102.tar.gz
codetools.tgz nlme.tgz
foreign_0.8-48.tar.gz nnet_7.3-1.tar.gz
foreign.tgz nnet.tgz
KernSmooth_2.23-7.tar.gz rpart_3.1-50.tar.gz
KernSmooth.tgz rpart.tgz
lattice_0.20-0.tar.gz spatial_7.3-3.tar.gz
lattice.tgz spatial.tgz
Makefile.in survival_2.36-10.tar.gz
Makefile.win survival.tgz
edd@max:~$ COLUMNS=60

5)最后,包在他们的描述字段中也这样说:
edd@max:~$ grep -i Recommended /usr/lib/R/library/*/DESCRIPTION
/usr/lib/R/library/boot/DESCRIPTION:Priority: recommended
/usr/lib/R/library/class/DESCRIPTION:Priority: recommended
/usr/lib/R/library/cluster/DESCRIPTION:Priority: recommended
/usr/lib/R/library/codetools/DESCRIPTION:Priority: recommended
/usr/lib/R/library/foreign/DESCRIPTION:Priority: recommended
/usr/lib/R/library/KernSmooth/DESCRIPTION:Priority: recommended
/usr/lib/R/library/lattice/DESCRIPTION:Priority: recommended
/usr/lib/R/library/MASS/DESCRIPTION:Priority: recommended
/usr/lib/R/library/Matrix/DESCRIPTION:Priority: recommended
/usr/lib/R/library/mgcv/DESCRIPTION:Priority: recommended
/usr/lib/R/library/nlme/DESCRIPTION:Priority: recommended
/usr/lib/R/library/nnet/DESCRIPTION:Priority: recommended
/usr/lib/R/library/rpart/DESCRIPTION:Priority: recommended
/usr/lib/R/library/spatial/DESCRIPTION:Priority: recommended
/usr/lib/R/library/survival/DESCRIPTION:Priority: recommended
edd@max:~$


edd@max:~$ grep "Priority: base" /usr/lib/R/library/*/DESCRIPTION
/usr/lib/R/library/base/DESCRIPTION:Priority: base
/usr/lib/R/library/compiler/DESCRIPTION:Priority: base
/usr/lib/R/library/datasets/DESCRIPTION:Priority: base
/usr/lib/R/library/graphics/DESCRIPTION:Priority: base
/usr/lib/R/library/grDevices/DESCRIPTION:Priority: base
/usr/lib/R/library/grid/DESCRIPTION:Priority: base
/usr/lib/R/library/methods/DESCRIPTION:Priority: base
/usr/lib/R/library/parallel/DESCRIPTION:Priority: base
/usr/lib/R/library/splines/DESCRIPTION:Priority: base
/usr/lib/R/library/stats4/DESCRIPTION:Priority: base
/usr/lib/R/library/stats/DESCRIPTION:Priority: base
/usr/lib/R/library/tcltk/DESCRIPTION:Priority: base
/usr/lib/R/library/tools/DESCRIPTION:Priority: base
/usr/lib/R/library/utils/DESCRIPTION:Priority: base
edd@max:~$

所有这些答案都是针对 2.14.1 的。

关于r - R 2.XX.Y 中的核心包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8948838/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com