Search This Blog

Saturday, August 22, 2015

Installing gmodels library in R

Steps for installing gmodels in your R distribution are fairly straight forward.

First login to R using sudo, so your package can be installed to the shared repository

sudo R




Next, enter the following command in R prompt

install.packages("gmodels")



By default, R prompts for https mirrors. For some reason, https mirrors gave me errors. For this reason select the option for HTTP mirrors at the bottom of the list, as shown below.


Next, choose your preferred mirror from the list of http mirrors, as shown below


Click OK to install. R will download the packages and install as neccessary.



Once the installation, has finished load the library using the following command and we are good to go.

library(gmodels)



That's it...

No comments: