Created
December 14, 2019 08:20
-
-
Save pat-s/87b5ae39c21a4aaaf94c21e5a4563ecf to your computer and use it in GitHub Desktop.
Install R official on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
bash install-r-macOS.sh 3.6
Will install the latest version of the R 3.6 branch.