In the software center, you can easily find an official R app under Category “Science & Engineering :: Mathematics”.
Installed that, I tried to installed packages “dplyr” but failed - error message told me that the current version is ver. 3.0.x…
That definitely doesn’t meet my needs because I’m using ver. 3.2.2 on WIN7. We need to remove it and reinstall it by cmd line.
On Cran-R homepage, there is an index led to Ubuntu installation instruction.
The first thing to do is to “add an entry in your /etc/apt/sources.list file” (one of the 3 lines below, anyone is OK):
For instance, I prefer the mirror from RStudio, so - to who never used Linux before - fill the line below in tab “Other Software” of the file “sources.list” under “/etc/apt/“:
Again! IT IS NOT A COMMAND!
Remember that I’ve already installed R of an older version, I need to remove that beforehand. Ignore that if you never install it.
According to the official instruction, to install the complete R system, use:
But that didn’t work, I got an error message:
By scrolling down the instruction:
The Ubuntu archives on CRAN are signed with the key of “Michael Rutter firstname.lastname@example.org” with key ID E084DAB9.
To add the key to your system and finish the installation with the commands:
To install RStudio, you can directly download the .deb package from https://www.rstudio.com/products/rstudio/download/. Once it’s downloaded, software center will pop up a window asking for installation.
Installing latest version of R-base