Installation of R and RStudio

First steps with R: installation of R and Rstudio

You're ready to create your first scripts, but before to launch your favorite text editor, let's take few minutes to deploy your development environment.

R setup

The first thing to do is to install R. Several version exists but the most popular and acclaimed by the community is that of CRAN.

This version is available for most of the operating system:

  • Linux: Debian, Red Hat, Suse, Ubuntu
  • Windows
  • Mac OSX

Note that we'll talk about desktop use, but you can install R on your own server.

Take a look at the CRAN website and select the package adapted to your operating system.

Rstudio setup

You can create your R scripts without user interface. However, the main part of the community use RStudio for years, that became the most used IDE for R programming.

Rstudio is a free software, cross-platform, and free for the open source version. It allows to find several functions for R programming, like:

  • Display several windows for your scripts or development console
  • Display the objects of your development environment
  • Explore your files
  • Visualize plots
  • Access to the CRAN documentation

Like R, Rstudio is available for the most operating systems (Windows, Mac OS X, Linux…). Note that a server version, distinct of the desktop version, is available for Linux environments (Debian, Ubuntu, RedHat, CentOS…). At last, a professional version is available on the editor website.

To download RStudio, go to the RStudio website and select the package adapted to your operating system.

You now have your own environment to develop your first R scripts.