R/misc_install_dependencies.R

Defines functions install_dependencies

Documented in install_dependencies

#' Install all dependencies for the DALEX package
#'
#' By default 'heavy' dependencies are not installed along DALEX.
#' This function silently install all required packages.
#'
#' @param packages which packages shall be installed?
#' @importFrom utils install.packages
#' @export
install_dependencies <- function(packages = c("ingredients", "iBreakDown", "ggpubr")) {
  sapply(packages, function(package) {
    cat("\nInstallation of the ", package, " initiated.\n")
    try(install.packages(package), silent = TRUE)
  })
  invisible(NULL)
}
ModelOriented/DALEX documentation built on July 28, 2021, 6:40 p.m.