devtools (version 1.8.0)

install_git: Install a package from a git repository

Description

It is vectorised so you can install multiple packages with a single command. You do not need to have git installed.

Usage

install_git(url, subdir = NULL, branch = NULL, args = character(0), ...)

Arguments

url
Location of package. The url should point to a public or private repository.
subdir
A sub-directory within a git repository that may contain the package we are interested in installing.
branch
Name of branch or tag to use, if not master.
args
DEPRECATED. A character vector providing extra arguments to pass on to git.
...
passed on to install

See Also

Other package installation: install_bitbucket; install_github; install_gitorious; install_svn; install_url; install_version; install

Examples

Run this code
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 DataCamp Workspace