Skip to content

Instantly share code, notes, and snippets.

@pat-s
Created December 14, 2019 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pat-s/87b5ae39c21a4aaaf94c21e5a4563ecf to your computer and use it in GitHub Desktop.
Save pat-s/87b5ae39c21a4aaaf94c21e5a4563ecf to your computer and use it in GitHub Desktop.
Install R official on macOS
#! /bin/bash
R_VERSION=$1
wget https://mac.r-project.org/el-capitan/R-${R_VERSION}-branch/R-${R_VERSION}-branch-el-capitan-sa-x86_64.tar.gz
sudo tar fvxz R*.tar.gz -C /
rm R*.tar.gz
@pat-s
Copy link
Author

pat-s commented Dec 14, 2019

Usage

bash install-r-macOS.sh 3.6

Will install the latest version of the R 3.6 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment