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 {

Keybase proof

I hereby claim:

  • I am dfeinzeig on github.
  • I am dfeinzeig (https://keybase.io/dfeinzeig) on keybase.
  • I have a public key whose fingerprint is EA06 2C24 CF7C 8642 C315 61CA 4778 5016 9E74 E0EC

To claim this, I am signing this object: