R/install_local_package.R

Defines functions install_local_package

Documented in install_local_package

#' Install local package with dependencies
#'
#' Install dependencies based oon the DESCRIPTION file and then installs the
#' package.
#'
#' @param path path to package
#'
#' @return none
#' @export
#'
install_local_package <- function(path='.')
{
  if (!requireNamespace('remotes', quietly = TRUE))
    install.packages('remotes')
  remotes::install_deps(pkgdir = path, dependencies = TRUE, repos = BiocManager::repositories(), Ncpus=2)
  remotes::install_local(path = path, dependencies = FALSE, upgrade = FALSE)
}
ajabadi/Alstuff documentation built on Jan. 19, 2022, 1:43 p.m.