install_github {ipkg} | R Documentation |
Install R packages from GitHub via the proxy site
Description
When you want to install R packages from GitHub, but you can't access GitHub, this function helps you download and install R packages from GitHub via the proxy website <https://mirror.ghproxy.com/> or <https://gh-proxy.com/>, which is in real-time sync with GitHub.
Usage
install_github(
repo,
subdir = NULL,
ref = NULL,
upgrade = c("default", "ask", "always", "never"),
force = FALSE,
quiet = FALSE,
build = TRUE
)
Arguments
repo |
Repository address in the format username/repo. |
subdir |
A sub-directory within a git repository that may contain the package we are interested in installing. |
ref |
Name of branch, tag or SHA reference to use, if not HEAD. |
upgrade |
Should package dependencies be upgraded? One of "default", "ask", "always", or "never". "default" respects the value of the R_REMOTES_UPGRADE environment variable if set, and falls back to "ask" if unset. "ask" prompts the user for which out of date packages to upgrade. For non-interactive sessions "ask" is equivalent to "always". TRUE and FALSE are also accepted and correspond to "always" and "never" respectively. |
force |
Force installation, even if the remote state has not changed since the previous install. |
quiet |
If TRUE, suppress output. |
build |
If TRUE build the package before installing. |
Examples
# Example(Not run)
# install_github("yihui/xfun")