无法安装任何R包?

时间:2015-09-15 17:57:35

标签: r unix installation package

我在UNIX服务器上使用R 3.2.2(这是安装到我的HOME)。

我尝试安装的任何软件包都会返回如下错误消息:

install.packages('knitr')
Warning: unable to access index for repository
https://cran.rstudio.com/src/contrib
Warning message:
package ‘knitr’ is not available (for R version 3.2.2) 

我还尝试下载软件包源并手动安装,但这不起作用:

install.packages('/home/baker/knitr_1.11.tar.gz',repos= NULL,type='source')
ERROR: dependencies ‘evaluate’, ‘digest’, ‘formatR’, ‘highr’, ‘markdown’,     ‘stringr’, ‘yaml’ are not available for package ‘knitr’
* removing ‘/home/baker/R/lib64/R/library/knitr’
Warning message:
In install.packages("/home/baker/knitr_1.11.tar.gz", repos = NULL,  :
 installation of package ‘/home/baker/knitr_1.11.tar.gz’ had non-zero exit status

这显然是一个令人沮丧的问题......任何想法?我完全失去了。

0 个答案:

没有答案