- 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
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
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