How to install R and RStudio on Ubuntu 16.04.1 Xenial

    Add R repository

sudo echo "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/" | sudo tee -a /etc/apt/sources.list

    Add R to Ubuntu Keyring

gpg --keyserver keyserver.ubuntu.com --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
wget https://download1.rstudio.org/rstudio-1.0.44-amd64.deb
sudo gdebi -n rstudio-1.0.44-amd64.deb
rm rstudio-1.0.44-amd64.deb

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
Share and Enjoy
  • Facebook
  • Twitter
  • LinkedIn
  • del.icio.us
  • StumbleUpon
  • RSS
  • email
  • PDF

Published by

Samuel

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:
    wget https://download1.rstudio.org/rstudio-1.0.136-i386.deb
    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:
    wget https://download1.rstudio.org/rstudio-1.0.44-amd64.deb

    i get:
    –2017-02-08 13:59:41– https://download1.rstudio.org/rstudio-1.0.44-amd64.deb
    Resolving download1.rstudio.org (download1.rstudio.org)… 52.85.89.167, 52.85.89.135, 52.85.89.237, …
    Connecting to download1.rstudio.org (download1.rstudio.org)|52.85.89.167|: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.

*