Installing igraph package R in ubuntu

I use the following command to install the igraph package R in ubuntu: install.packages("igraph")

But I get an error message:

Warning: cannot access the index for the repository
http://ftp.iitm.ac.in/cran/src/contrib : cannot open the URL ' http://ftp.iitm.ac.in/cran/src/contrib/ PACKAGES 'Warning messages: package' igraph is not available (for version 3.3.2)

Can anyone address this issue where I am wrong about this ...

+4
source share
3 answers

You probably need a binary package, and I recently explained how to do this:

- - ( , , Docker Ubuntu 16.04, Docker, root; sudo )

apt-get update     # refresh
apt-get install software-properties-common
add-apt-repository -y "ppa:marutter/rrutter"
add-apt-repository -y "ppa:marutter/c2d4u"
apt-get update     # now with new repos
apt-get install r-cran-igraph

. , Ubuntu. , , , , Ubuntu 16.04; add-apt-repository.

+6

, , , .

, CRAN :

> options(repos="http://example.com/")
> install.packages("foo")
Installing package into ‘/nobackup/rowlings/RLibrary/R/x86_64-pc-linux-gnu-library/3.2
(as ‘lib’ is unspecified)
Warning: unable to access index for repository http://example.com/src/contrib:
  cannot open URL 'http://example.com/src/contrib/PACKAGES'

Warning message:
package ‘foo’ is not available (for R version 3.2.3) 

, , , , CRAN , , -.

0

sudo apt-get install build-essential

Ubuntu Debian Linux lixml2 libxml2-dev R.

, -

-1

Source: https://habr.com/ru/post/1662962/


All Articles