#!/bin/bash set -o errexit -o pipefail if ! has r; then if [[ "$OS" = "Darwin" ]]; then gimme_pkg r-app else sudo apt-get install r-base fi fi