How to install R and RStudio in Ubuntu 17.10 Artful Aardvark and issues with tidyverse

Install R

sudo apt update
sudo apt install r-base

Install R Studio 

wget --tries=3 --timeout=120
sudo dpkg -i rstudio-*-amd64.deb

If you have issues, then add dependencies


Install RStudio (october 2017)

sudo apt-get install gdebi-core && wget && sudo gdebi -n rstudio-1.0.143-amd64.deb && rm rstudio-1.0.143-amd64.deb

Issues with tidyverse

sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libssl-dev
sudo apt-get install libxml2-dev

If you still have issues, then