Skip to content

Instantly share code, notes, and snippets.

@bhaskarvk
Created September 8, 2015 16:21
Show Gist options
  • Save bhaskarvk/ac236aef19c2384d84ca to your computer and use it in GitHub Desktop.
Save bhaskarvk/ac236aef19c2384d84ca to your computer and use it in GitHub Desktop.
Bash functions to install R packages from github
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
@bhaskarvk
Copy link
Author

Source it from your .bashrc/.bash_profile file.

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