RStudio is a free and open-source integrated development environment (IDE) for R, a programming language for statistical computing and graphics.It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management.
RStudio is available in two editions: RStudio Desktop, where the program is run locally as a regular desktop application; and RStudio Server, which allows accessing RStudio using a web browser while it is running on a remote Linux server. Prepackaged distributions of RStudio Desktop are available for Windows, OS X, and Linux.
RStudio is available in open source and commercial editions and runs on the desktop (Windows, OS X, and Linux) or in a browser connected to RStudio Server or RStudio Server Pro (Debian, Ubuntu, Red Hat Linux, CentOS, openSUSE and SLES).
RStudio is written in the C++ programming language and uses the Qt framework for its graphical user interface.
One can download R studio from the following website : https://www.rstudio.com/products/rstudio/
How to Install and Configure RStudio
Installing RStudio is easy. Just follow these steps:
-
Click the Download RStudio Desktop button.
Select the installation file for your system.
Run the installation file.
RStudio will be installed on your system. It normally detects your
latest installed R version automatically. If you didn’t do anything
funky, you should be able to use R from within RStudio without extra
configuration.
How to configure RStudio
You may want to use a different R version from the one RStudio
detected. For example, you may want to use R in a 64-bit context. Or
RStudio may not have recognized your installation of R. In that case,
you can set which R version to use by choosing Tools→Options to open the
Options pane.

To change the R version, click the Change button. Then you can switch
between the default 32-bit R installation or the 64-bit R installation
(if installed), or you can choose a specific version of R. (RStudio
lists all the versions it can find.)
If you click Browse, you can select the root directory
for any R version you want to use. This folder normally looks something
like …/R/R-n.n.n. If you select an R version that has both 32-bit and 64-bit builds, RStudio will ask you which build you want to use.
In the Options pane, you also can tweak the behavior of R in RStudio.
If you click the General icon in the left column, you get all the
default options for R in RStudio:
Initial working directory: You can set the default working directory R will use at startup.
Save workspace to .RData on exit: Your options are Ask, Never, or Always. By default, RStudio asks you whether you want to save the workspace when you quit.
Restore .RData into workspace at startup:
Select this check box to let RStudio restore the workspace
automatically at startup. RStudio will look for a saved workspace in the
root folder or the default working directory.
Always save history (even when not saving .RData):
Select this check box to have RStudio always save the history. If you
don’t select this check box, RStudio doesn’t save the history when you
exit the program.
Use single global history (rather than per-working directory): Select this check box to have RStudio always save the history in a single global file.
Remove duplicate entries in history: If you select this check box, RStudio removes duplicate entries from your history when the history is saved.
Comprehensive R Archive Network (CRAN) mirror: Click the Change button to set the CRAN mirror site that RStudio uses to install new packages.
These settings work for R only from within RStudio.
If you use R with another editor or by itself, the settings in RStudio
will have no effect.