
How to Install R on Linux Ubuntu 16.04 Xenial Xerus (ApBy Kris Eberwein) Be sure to revise the command part associated with the version you would like to install accordingly, which I highlight in red and italic below.) # Download and Install RStudio

See the picture below the install commands to see how to get the latest version of RStudio for you. (Note that you can get latest RStudio download link at here. If you would like to install the latest version, just change the link info after the wget command. Use CTRL + ALT + T to open your terminal, then use the commands below. If you would like to use R in IDE like RStudio, See below for the instructions. Then: gpg -a -export E084DAB9 | sudo apt-key add. sudo echo "deb xenial/" | sudo tee -a /etc/apt/sources.listįirst: gpg -keyserver -recv-key E084DAB9 If you have a different version, just change that. Note the “xenial” in the line, indicating Ubuntu 16.04. This can be accomplished with the following. The easy fix is to download and install R Base directly from the Cran servers.įirst, we’ve got to add a line to our /etc/apt/sources.list file. However, the Software Center versions are often out of date, which can be a pain moving foward when your packages are based on the most current version of R Base. You can find R-Base in the Software Center this would be the easy way to do it. This post provides instructions for installing R-Base and RStudio on Ubuntu 16.04.
