I installed R-3.2.2 from the source (./configure
, ./make
, ./make install
). It works perfectly fine but when I try to install any package from any repository, I get the following message:
> 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)
I'm not using any proxy and I tried doing what is said here - I've installed build-essentials
and r-base-dev
with apt-get, but still, the error continues.
What is strange though is that with RStudio on the same machine, the download of packages works fine, the problem occurs only when I use R from the command line.