Last active
January 1, 2016 16:59
-
-
Save bbest/8173863 to your computer and use it in GitHub Desktop.
Install and launch the Ocean Health Index application. This only needs to be run once when initially installing or later when updating. Please see comments (prefixed with #) for more information.
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
# remove old packages | |
for (p in c('ohicore','ohigui','rCharts')){ | |
if (p %in% rownames(installed.packages())){ | |
lib = subset(as.data.frame(installed.packages()), Package==p, LibPath, drop=T) | |
remove.packages(p, lib) | |
} | |
} | |
# install dependencies | |
for (p in c('devtools')){ | |
if (!require(p, character.only=T)){ | |
install.packages(p) | |
require(p, character.only=T) | |
} | |
} | |
# install packages | |
install_github('ohi-science/rCharts') | |
install_github('ohi-science/ohicore') | |
# get scenarios and launch | |
library(ohicore) | |
get_scenarios('ohi-science/ohi-global', '~/ohi-global') | |
launch_app('~/ohi-global/eez2013') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
added sqldf dependency