Skip to content

Instantly share code, notes, and snippets.

@mpkocher
Created May 4, 2017 18:40
Show Gist options
  • Save mpkocher/c5ab8e41515d4b5b5ffb7e0ab4a9d3bd to your computer and use it in GitHub Desktop.
Save mpkocher/c5ab8e41515d4b5b5ffb7e0ab4a9d3bd to your computer and use it in GitHub Desktop.
Install the Zeppelin R dependencies for 0.7.1
#!/bin/bash
declare -a packages=("devtools" "knitr" "ggplot2" "mplot" "googleVis" "data.table" "caret" "pRoc" "sqldf" "glmnet")
declare -a ghpackages=("ramnathv/rCharts")
for i in "${packages[$@]}"; do
echo "Attempting to install '${i}'"
R -e "install.packages('${i}', repos = 'http://cran.us.r-project.org')"
done
for i in "${ghpackages[$@]}"; do
echo "Attempting to install '${i}'"
R -e "require(devtools); devtools::install_github('${i}')"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment