软件包' dataset '不可用(R版本3.1.1)[复制]

时间:2021-10-06 14:06:35

This question already has an answer here:

这个问题已经有了答案:

I am installing different packages in R but I getting following error,even though I Installed Later Available R verson

我在R中安装了不同的包,但是我有以下错误,即使我安装了后来的R verson。

Command:

命令:

install.packages("dataset")

Error:

错误:

package ‘dataset’ is not available (for R version 3.1.1)

1 个解决方案

#1


2  

You probably want the datasets package, with an s. That's pretty popular.

你可能想要一个带有s的数据集包,这很受欢迎。

If not, the package you're looking for is probably in a different repository (not CRAN). You can install packages from other repositories with the devtools package. For example, if it's on GitHub you can type:

如果没有,您正在寻找的包可能在不同的存储库中(不是CRAN)。您可以使用devtools包从其他存储库安装包。例如,如果它在GitHub上,你可以输入:

install.packages("devtools")
require(devtools)
install_github("packageName")

#1


2  

You probably want the datasets package, with an s. That's pretty popular.

你可能想要一个带有s的数据集包,这很受欢迎。

If not, the package you're looking for is probably in a different repository (not CRAN). You can install packages from other repositories with the devtools package. For example, if it's on GitHub you can type:

如果没有,您正在寻找的包可能在不同的存储库中(不是CRAN)。您可以使用devtools包从其他存储库安装包。例如,如果它在GitHub上,你可以输入:

install.packages("devtools")
require(devtools)
install_github("packageName")