Skip to content

Installing R and shinyapp

Claudio Agosti edited this page May 18, 2019 · 5 revisions

these notes are tested on Ubuntu 18.04

First, you should install Rbase

gpg --keyserver keyserver.ubuntu.com --recv 51716619E084DAB9
gpg -a --export 51716619E084DAB9 | apt-key add - 

Which ubuntu are you on?

sudo echo "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/" | sudo tee -a /etc/apt/sources.list
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
sudo apt-get update
sudo apt install libssl-dev libcurl4-openssl-dev libxml2-dev
sudo apt install lib32gcc1 lib32stdc++6 libc6-i386 libclang-6.0-dev libclang-common-6.0-dev libclang-dev libclang1-6.0 libllvm6.0 libobjc-7-dev libobjc libclang-dev 
sudo apt-get install r-base r-base-dev

Second, you can install Rstudio

Download links can be found here: https://www.rstudio.com/products/rstudio/download/

Navigate to the app folder in RStudio

Rstudio automatically detects missing packages and shows dialog windows to install them. Install everyhing, change the dataset path to one of your own. Everything should work.

Clone this wiki locally