R/install.R

#' Install, don't update
#'
#' @param pkg Package name, character
#'
#' @return NULL
#' @export
#'
#' @examples
#' \dontrun{
#' install("remotes")
#' }
#'
install <- function(pkg) {
  if (length(pkg) != 1L) stop("Expect one package name.")
  if (!length(find.package(pkg, quiet = TRUE)))
    utils::install.packages(pkg)
}
eaurele/aureleutils documentation built on May 26, 2019, 4:39 p.m.