#!/usr/bin/env bash
sudo apt-get update && sudo apt-get dist-upgrade -y
sudo apt install dirmngr --install-recommends
sudo apt install software-properties-common apt-transport-https -y
sudo apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/debian stretch-cran35/'
sudo apt-get update
sudo apt-get install r-base-dev -y
sudo apt-get install libcurl4-openssl-dev libssl-dev libxml2-dev -y