Skip to content

Instantly share code, notes, and snippets.

@bbest
Last active January 1, 2016 16:59
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/8173863 to your computer and use it in GitHub Desktop.
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.
# 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')
@bbest
Copy link
Author

bbest commented Dec 30, 2013

now using a custom rCharts library to enable the latest tweaks (eg specifying map width as 100% vs 800px)

@bbest
Copy link
Author

bbest commented Jan 2, 2014

added sqldf dependency

@bbest
Copy link
Author

bbest commented Jan 2, 2014

fixed require()

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