Skip to content

Instantly share code, notes, and snippets.

View moldach's full-sized avatar

Matthew J. Oldach moldach

View GitHub Profile
@moldach
moldach / r_ubuntu.sh
Last active August 7, 2024 10:07 — forked from luispuerto/r_ubuntu.sh
Install R and RStudio on Ubuntu 19.10 with essential libraries for data science. Based on pachamaltese/r_ubuntu_17_10.sh (for Ubuntu 17.10). Note: You need to make sure the default library location - /usr/local/lib/R/site-packages - is writable .
!#/bin/bash
set -o nounset # To exit when your script tries to use undeclared variables.
set -o xtrace # To trace what gets exectued (debugging).
set -e # Abort script at first error, when a command exits with non-zero status (except in until or while loops, if-tests, list constructs)
set -o pipefail # Causes a pipeline to return the exit status of the last command in the pipe that returned a non-zero return value.
# Install multiple versions of python
# https://github.com/pyenv/pyenv
# https://github.com/pyenv/pyenv/wiki#suggested-build-environment