Rather than using the precompiled binaries, if you’re running a Linux distribution with a centralized package repository, such as Fedora or Ubuntu, you can install R using your OS’s package manager. For example, if you’re running Fedora, you can install R by typing the following at the command line:
$ yum install R
For a Debian-based system, such as Ubuntu, the command looks like this:
$ sudo apt-get install r-base
Check your distribution’s documentation for more details on installing and removing packages.