How to install R and RStudio on Ubuntu 16.04.1 Xenial

    Add R repository

sudo echo "deb xenial/" | sudo tee -a /etc/apt/sources.list

    Add R to Ubuntu Keyring

gpg --keyserver --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -

    Install R-Base

sudo apt-get update
sudo apt-get install r-base r-base-dev

    Install OpenSSL

sudo apt-get install libcurl4-openssl-dev

    Install RStudio

sudo apt-get install gdebi-core
sudo gdebi -n rstudio-1.0.44-amd64.deb
rm rstudio-1.0.44-amd64.deb

VN:F [1.9.22_1171]
Rating: 4.0/5 (1 vote cast)
How to install R and RStudio on Ubuntu 16.04.1 Xenial, 4.0 out of 5 based on 1 rating
Share and Enjoy
  • Facebook
  • Twitter
  • LinkedIn
  • StumbleUpon
  • RSS
  • email
  • PDF

Published by


Ph.D. Student in the Department of Computer and Systems Sciences, Stockholm University.

2 thoughts on “How to install R and RStudio on Ubuntu 16.04.1 Xenial”

  1. Install RStudio / third step: if you get the error message Wrong architecture ‘amd64’ you’re probably using a 32-bit processor.
    Repeat steps 2 and 3 with the corresponding packet names:
    sudo gdebi -n rstudio-1.0.136-i386.deb

    VA:F [1.9.22_1171]
    Rating: 10.0/10 (1 vote cast)
  2. when i’m on 2nd step:

    i get:
    –2017-02-08 13:59:41–
    Resolving (…,,, …
    Connecting to (||:443… connected.
    HTTP request sent, awaiting response… 200 OK
    Length: 96515602 (92M) [application/x-deb]
    rstudio-1.0.44-amd64.deb: Permission denied

    Cannot write to ‘rstudio-1.0.44-amd64.deb’ (Success).

    when I’m on the 3rd step:
    sudo gdebi -n rstudio-1.0.44-amd64.deb

    I get:
    gdebi error, file not found: rstudio-1.0.44-amd64.deb

    VA:F [1.9.22_1171]
    Rating: 0.0/10 (0 votes cast)

Leave a Reply

Your email address will not be published.