-
-
Save mGalarnyk/41c887e921e712baf86fecc507b3afc7 to your computer and use it in GitHub Desktop.
# Install R + RStudio on Ubuntu 16.04 | |
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E084DAB9 | |
# Ubuntu 12.04: precise | |
# Ubuntu 14.04: trusty | |
# Ubuntu 16.04: xenial | |
# Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/ | |
sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/' | |
sudo apt-get update | |
sudo apt-get install r-base | |
sudo apt-get install r-base-dev | |
# Download and Install RStudio | |
sudo apt-get install gdebi-core | |
wget https://download1.rstudio.org/rstudio-1.0.44-amd64.deb | |
sudo gdebi rstudio-1.0.44-amd64.deb | |
rm rstudio-1.0.44-amd64.deb |
This dependency was also required on my machine:
sudo apt-get install libjpeg62
For me continues to install R 3.4.4 :(
I want the newest version 3.5.0
Thanks, very useful 👍
thanks a lot
Thank you! It is very useful.
Thanks bro, pretty useful
:)
For me continues to install R 3.4.4 :(
I want the newest version 3.5.0
You need to add it in your repositories list. That should work :
$ sudo sh -c "cat > /etc/apt/sources.list.d/r.list"
deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/
Ctrl-D
- update
$ sudo apt-get update
- sign the keys
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
- install
$ sudo apt-get install r-base
Don't forget to uninstall the current version first !
I have followed the same step for the newest version 3.5.1. The R version upgraded, but all the R commands not working like
head("R")
It shows canclled
I had a problem with sudo gdebi rstudio-1.0.44-amd64.deb
so I used commands bellow instead:
sudo dpkg -i rstudio-1.0.44-amd64.deb
sudo apt-get install -f
Hey, I had the same problems upgrading to the newest R-version.
First, remove all your r installation if it doesn't work by
sudo apt purge r-base* r-recommended r-cran-*
The only way to get R 3.5/3.6 installed correctly was the following way:
sudo add-apt-repository ppa:marutter/rrutter3.5
sudo apt-get update
sudo apt-get -y install r-api-3.5
sudo su
echo "deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
apt-get update
apt-get install r-base
apt-get install r-base-dev
Great! Thank a lot! :-). Works nicely
Thanks !!!
@raquellu, you probably have to enable the universe packages of Ubuntu. Go to Software and Updates and on the first tab enable the "Community-maintained free and open-source software (universe)" checkbox. Then try again.