Skip to content

Instantly share code, notes, and snippets.

@zdepablo
Last active December 5, 2017 21:00
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 zdepablo/fae9c6542a40ca3e2dc6268f62be7b2b to your computer and use it in GitHub Desktop.
Save zdepablo/fae9c6542a40ca3e2dc6268f62be7b2b to your computer and use it in GitHub Desktop.
R: how to Install submodules from git
install_submodule_git <- function(x, ...) {
install_dir <- tempfile()
system(paste("git clone --recursive", shQuote(x), shQuote(install_dir)))
devtools::install(install_dir, ...)
}
install_submodule_git("https://github.com/jonkeane/mocapGrip")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment