Installing and using R with the igraph package
NetworCh manuals: Getting started
Installing and using the igraph package in R
The igraph package is a powerful library for analyzing, manipulating and vizualizing graphs and networks in R. Specifically, it implements advanced functions, such as graph isomorphism, that are not yet available in the NetworCh matlab library.
Installation
MC2
R is installed on mc2. To run R, simply load the module and type R in the terminal:
module load R/3.12 R
The igraph package is a library that is not natively available with R. To install it, go to your Codes/ directory and create a new directory called R-packages/:
cd Codes/ mkdir R-packages
The installation of the igraph package then proceeds within R using the install.packages() command:
install.packages("igraph", lib="~/Codes/R-packages/")
The package will be downloaded from the selected mirror and then directly compiled on mc2 (~5 minutes). Once the installtion is finished, the package can be loaded from R using the library() command and specifying the path to the installation directory:
install.packages("igraph", lib="~/Codes/R-packages/")