Created
September 8, 2015 16:21
-
-
Save bhaskarvk/ac236aef19c2384d84ca to your computer and use it in GitHub Desktop.
Bash functions to install R packages from github
This file contains hidden or 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
rInstGithub() { | |
Rscript -e "devtools::install_github('$1')" | |
} | |
rInstBob() { | |
rInstGithub "hrbrmstr/$1" | |
} | |
rInstKent() { | |
rInstGithub "timelyportfolio/$1" | |
} | |
rInstHadley() { | |
rInstGithub "hadley/$1" | |
} | |
rInstRstudio() { | |
rInstGithub "rstudio/$1" | |
} | |
# vim:filetype=sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source it from your .bashrc/.bash_profile file.