R/install_ghe.R

Defines functions install_ghe

Documented in install_ghe

#' Install a package directly from GitHub Enterprise.
#'
#' @inheritParams remotes::install_github
#' @inheritDotParams  remotes::install_github -host -auth_token
#' @seealso [remotes::install_github()]
#' @export
#' @author Daniel D. Sjoberg

install_ghe <- function(repo, ...) {
  if (is.null(ghe_host())) return(invisible())
  remotes::install_github(
    repo,
    auth_token = ghe_token(),
    host = ghe_host(),
    ...
  )
}
ddsjoberg/ghe.utils documentation built on Dec. 19, 2021, 10:04 p.m.