Thursday, June 9, 2016

Install R and Rstudio on Centos Linux

R is an analytical tool and Hadoop is an open source framework that allows us to store and process large amount of data in distributed environment.

To integrate R with Hadoop, we need to install R in Linux environment because Hadoop works in Linux environment. Now we will describe some steps to install R and Rstudio in Centos. 

Step 1:  Before install R in Centos we need to install some libraries

            sudo yum install gfortran
sudo yum install build-essential
sudo yum install gcc-gfortran.x86_64
sudo yum install libX11-devel.x86_64
sudo yum install libXt-devel
sudo yum install readline-devel

Step 2:  Now Install R

          sudo yum install R

Step 3: Check whether R is install or not, to start R type following command in terminal

 sudo R

Through this command you will see R interface is open in Command prompt.

Step 4: After that we need to download Rstudio server, type following command in terminal

sudo wget https://download2.rstudio.org/rstudio-server-rhel-0.99.902-x86_64.rpm

Step 5: Enter into Download directory
             cd Download
             sudo cp /Downloads /home/cloudera

Step 6: Give Permissions and install Rstudio server

            sudo chmod777 /home/cloudera/rstudio-server-rhel-0.99.902-x86_64.rpm
sudo yum install --nogpgcheck rstudio-server-rhel-0.99.902-x86_64.rpm

Step 7: Start Rstudio server, open terminal and type,

            sudo Rstudio-server start

Step 8: Access Rstudio server on browser, go to browser type,

            <Your ip address>:8787
localhost:8787

Step 9: Stop Rstudio server

            sudo Rstudio-server stop

Now you can easily install R packages. 

1 comment:

  1. very informative blog and useful article thank you for sharing with us , keep posting learn more about aws
    https://onlineitguru.com/data-science-online-training-placement.html

    ReplyDelete

Creating Compelling Pie Charts in Looker: A Step-by-Step Guide with Examples

Creating Compelling Pie Charts in Looker: A Step-by-Step Guide with Examples   In the realm of data visualization, pie charts are a clas...