Skip to content

Instantly share code, notes, and snippets.

@PaulC91
Last active September 30, 2021 12:41
Show Gist options
  • Save PaulC91/107bdebf1ccf3f2931b7a576ffbcc946 to your computer and use it in GitHub Desktop.
Save PaulC91/107bdebf1ccf3f2931b7a576ffbcc946 to your computer and use it in GitHub Desktop.
install r and tidyverse packages and rstudio server on ubuntu 18
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
sudo apt update
sudo apt install r-base
sudo apt install libcurl4-openssl-dev libssl-dev libxml2-dev
sudo su - -c "R -e \"install.packages('tidyverse', repos='https://packagemanager.rstudio.com/all/__linux__/focal/latest')\""
sudo apt-get install gdebi-core
wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.2.5019-amd64.deb
sudo gdebi rstudio-server-1.2.5019-amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment