It is vectorised so you can install multiple packages with a single command. You do not need to have the git2r package, or an external git client installed.
git2r
install_git(url, subdir = NULL, branch = NULL, git = c("auto", "git2r", "external"), ...)
Location of package. The url should point to a public or private repository.
A sub-directory within a git repository that may contain the package we are interested in installing.
Name of branch or tag to use, if not master.
Whether to use the git2r package, or an external git client via system. Default is git2r if it is installed, otherwise an external git installation.
passed on to install.packages
install.packages
# NOT RUN { install_git("git://github.com/hadley/stringr.git") install_git("git://github.com/hadley/stringr.git", branch = "stringr-0.2") # }
Run the code above in your browser using DataLab