Skip to content

Instantly share code, notes, and snippets.

@robertzk
Created March 18, 2014 19:28
Show Gist options
  • Save robertzk/9627546 to your computer and use it in GitHub Desktop.
Save robertzk/9627546 to your computer and use it in GitHub Desktop.
# Reload the suite of Syberia packages. This will be automated later.
require(devtools)
pkgs <- strsplit("Ramd productivus stagerunner statsUtils mungebitsTransformations mungebits tundra syberia", " ")[[1]]
lapply(list(
list(function(x) if(x %in% loadedNamespaces()) unloadNamespace(x), rev = TRUE),
list(install_github, 'robertzk'),
list(library, character.only = TRUE)
), function(x) { r <- x$rev; x$rev <- NULL; do.call(lapply, append(list(if (is.null(r)) pkgs else rev(pkgs)), x)) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment