Last active
December 5, 2017 21:00
-
-
Save zdepablo/fae9c6542a40ca3e2dc6268f62be7b2b to your computer and use it in GitHub Desktop.
R: how to Install submodules from git
This file contains 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
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