【发布时间】:2015-10-14 10:49:52
【问题描述】:
我从源代码(./configure、./make、./make install)安装了 R-3.2.2。它工作得很好,但是当我尝试从任何存储库安装任何包时,我收到以下消息:
> install.packages("igraph")
Installing package into ‘/home/jonathan/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Error in download.file(url, destfile = f, quiet = TRUE) :
unsupported URL scheme
HTTPS CRAN mirror
1: 0-Cloud [https] 2: Austria [https]
3: China (Beijing 4) [https] 4: China (Hefei) [https]
5: Colombia (Cali) [https] 6: France (Lyon 2) [https]
7: Iceland [https] 8: Russia (Moscow 1) [https]
9: Switzerland [https] 10: UK (Bristol) [https]
11: UK (Cambridge) [https] 12: USA (CA 1) [https]
13: USA (KS) [https] 14: USA (MI 1) [https]
15: USA (TN) [https] 16: USA (TX) [https]
17: USA (WA) [https] 18: (HTTP mirrors)
Selection: 10
Warning: unable to access index for repository https://www.stats.bris.ac.uk/R/src/contrib
Warning message:
package ‘igraph’ is not available (for R version 3.2.2)
我没有使用任何代理,我尝试执行here 所说的操作 - 我已经使用 apt-get 安装了 build-essentials 和 r-base-dev,但错误仍然存在。
但奇怪的是,在同一台机器上使用 RStudio,下载包工作正常,只有当我从命令行使用 R 时才会出现问题。
【问题讨论】:
标签: r