To install R in the Linux operating system, first, you need to know the version of Linux you are using. To know the version of Linux installed on your computer, there are many options. One of the options is the following command:
lsb_release -a
This command will give the release information as shown in the following screenshot:
In this recipe, you will see the example from the Ubuntu 14.04 release.