Description Usage Arguments Value Author(s) Examples
install_github
allows users to install R packages hosted on GitHub without needing to install or load the heavy dependencies required by devtools. ghit provides a drop-in replacement that provides (almost) identical functionality to devtools::install_github()
.
1 2 3 4 |
repo |
A character vector naming one or more GitHub repository containing an R package to install (e.g., “leeper/ghit”), or optionally a branch (“leeper/ghit[dev]”), a reference (“leeper/ghit@b200fb1bd”), tag (“leeper/ghit@v0.2”), or subdirectory (“leeper/ghit/R”). These arguments can be placed in any order and in any combination (e.g., “leeper/ghit[master]@abc123/R”). |
host |
A character string naming a host, to enable installation of enterprise-hosted GitHub packages. |
build_args |
A character string used to control the package build, passed to |
build_vignettes |
A logical specifying whether to build package vignettes, passed to |
uninstall |
A logical specifying whether to uninstall previous installations using |
verbose |
A logical specifying whether to print details of package building and installation. |
repos |
A character vector specifying one or more URLs for CRAN-like repositories from which package dependencies might be installed. By default, value is taken from |
type |
A character vector passed to the |
dependencies |
A character vector specifying which dependencies to install (of “Depends”, “Imports”, “Suggests”, etc.). The default, |
... |
Additional arguments to control installation of package, passed to |
credentials |
An |
argument passed to the credentials
argument to clone
. See cred_user_pass
or cred_ssh_key
.
A named character vector of R package versions installed.
Thomas J. Leeper
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
tmp <- file.path(tempdir(), "tmplib")
dir.create(tmp)
# install a single package
install_github("cloudyr/ghit", lib = tmp)
# install multiple packages
install_github(c("cloudyr/ghit", "leeper/crandatapkgs"), lib = tmp)
# cleanup
unlink(tmp, recursive = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.