Skip to content

Instantly share code, notes, and snippets.

@dfeinzeig
dfeinzeig / installPackages.R
Last active February 24, 2023 20:22 — forked from cannin/installPackages.R
Install/update necessary packages from CRAN, Bioconductor, GitHub, or local source given a vector of strings with names of packages or DCF-based parameter file
#' Install/update necessary packages from CRAN, Bioconductor, GitHub, or local sources
#'
#' @param file a file with packages; overrides packages parameter
#' @param packages a vector of strings with names of packages from CRAN, Bioconductor, GitHub
#' @param failFast whether to immediately stop with an error upon first package installation failure
#' @param updatePackages whether to update existing packages (Default: FALSE)
#' @param dryRun whether to test for missing packages (Default: FALSE)
#'
#' @example
#' \dontrun {