Skip to content

Instantly share code, notes, and snippets.

@bbest
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbest/ed6a03258c3815a3e2ba to your computer and use it in GitHub Desktop.
Save bbest/ed6a03258c3815a3e2ba to your computer and use it in GitHub Desktop.
install ohicore, download ohi-global and launch ohi-global/eez2013
# 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@dev')
# 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