无法在Debian Jessie中安装R软件包

约翰·劳伦斯·阿斯普登

我正在看使用R的Kaggle机器学习教程之一

我正在使用Debian Jessie,令我惊讶的是Debian上打包的R似乎是最新的版本,于去年6月发布。

$ apt show r-recommended
Version: 3.3.1-1~jessiecran.0

$ R
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"

祝贺所有参与其中的人!

因此,本教程开始了:

# Load packages
library('ggplot2') # visualization
library('ggthemes') # visualization
library('scales') # visualization
library('dplyr') # data manipulation
library('mice') # imputation
library('randomForest') # classification algorithm

其中一些软件包可以作为进一步的jessie软件包安装。

$ sudo apt install r-cran-ggplot2 r-cran-scales r-cran-dplyr r-cran-mice r-cran-randomforest

离开“ ggthemes”和“ mice”。

所以我进入R并输入

> install.packages('ggthemes', dep = TRUE)

它说:

package ‘ggthemes’ is not available (for R version 3.3.1)

https://cran.r-project.org/web/packages/ggthemes/index.html

存在,除其他外,它说:

Version:    3.2.0
Depends:    R (≥ 3.0.0)

看起来还可以。

那么我在做什么错了,我应该如何安装“ ggthemes”和“ mice”呢?

约翰·劳伦斯·阿斯普登

实际上,这似乎是英国镜子的问题。如果我选择从USA CA1镜像进行安装,则将安装并构建软件包。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章