Home » R Language

Installation Process of R Language

R language Installation: In this tutorial, we are going to learn how to install R language in Windows, Linux and Mac systems?
Submitted by Bhavya Sri Khandrika, on March 21, 2020

R language Installation

Prior to the coding part, it is essential to install the necessary environment for the R language. So here is the process of installation of the R programming language on your system.

R language Installation in Windows Systems

You can download the Windows installer version of the R language. At present, the latest versions of the R language for Windows are of R-3.2.2 do both 32 bit and 64-bit versions. One of the advantages of installing this version is, it automatically saves the software in the local directory.

The following are the main steps involved while installing the latest version of the R language.

Since the software can be easily pointed as it contains the extension file as(.exe) and that is usually named as " R-version-win.exe". After one finds this in the windows installer then you just need to ought to double click on it. And the next step includes running the installer by accepting all the default settings.

In case you have windows with 32 bit then it makes sure to install the 32-bit version. Or else it moves to the installation of a 64-bit version when it finds the version of the computer to be 64 bit.

Once the installation completes then one will be able to find the icon in the directory structure in the form of "R\R3.2.2\bin\i386\Rgui.exe". Also, the icon of R-GUI can be directly spotted in the windows program files. Thus, the R-GUI is the required console for performing the programs in the R language.

R language Installation in Linux Systems

It is interesting to find that the R language has its advantages over the other various programming languages. The R language is also available in the form of Binary for several available versions of Linux. Coming to the installation of the Linux, the variation can be noticed and appreciated.

Moving further, it is widely advised to note that there are various versions available for the different Linux versions. In case if you are in a rush to work on the R language console then you can easily opt the below way.

    $ yum install R

In the above case, a command called yum is normally used to install the R. The above statement helps in installing the core functionality of the R, by embedding the required packages to make the console a user-friendly one. Once the installation is completed then it the time to launch the R prompt with the help of the following code:

    $ R
    R version 3.2.0 (2015-04-16) -- "Full of  Ingredients"          
    Copyright (C) 2015 The R Foundation for Statistical Computing
    Platform: x86_64-Redhat-Linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.

You are welcome to redistribute it under certain conditions.

Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.

Type 'contributors()' for more information and

'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or

'help.start()' for an HTML browser interface to help.

Type 'q()' to quit R.

As stated earlier the installation of R will include all the required packages embedded in it but however, to improve the experience it is widely advised for the users to install many other packages available for performing a particular function.

Now, for example, the below command will help the user in installing the package called the plotrix package that is used in the case where the 3D charts are required.

    > install.packages("plotrix")

Thus, in an above-mentioned way, one can easily install the R in their computer and eventually enjoy the benefits of the R programming language.

R language Installation in Mac Systems

Mac users can directly install the R from the official site. Here is one of the sites that provide the provision of downloading the R for mac version. And this is as follows:

www.r-project.org.

The above site takes the user to the download page of the R. After getting into the site, then click on the option available for downloading the R which is labeled as "Download R".  Then after that select any of the mirror links for moving forward to the next phase of downloading process. Thereby the mac users find the option "Download R for (Mac) OS X". Once the users find the option under the files section then save it under the name of .pkg. Thus, the file saves with the given name. Now open the package and complete the setup process. Once the setup is completed with all the necessary permissions granted then finally the R gets installed in your system.



Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.