docker/components/installPrerequisitePackages.R

printf <- function(...) print(noquote(sprintf(...)))
install.packages("BiocManager", repos="https://cran.rstudio.com")
biocGet <- function(pkgs){
   library(BiocManager)
   BiocManager::install(pkgs, update=FALSE)
   }


code.pkgs <- c("RUnit",
               "GenomicRanges",
               "org.Hs.eg.db",
               "BSgenome.Hsapiens.UCSC.hg38",
               "Biostrings",
               "RPostgreSQL",
               "MotifDb"
               )

for(code.pkg in code.pkgs){
   suppressWarnings(
      needed <- !require(code.pkg, character.only=TRUE, lib.loc=my.user.library, quiet=TRUE)
      )
   printf("%s needed? %s", code.pkg, needed)
   if(needed)
      biocGet(code.pkg)
   } # for


library(devtools)
github.pkgs <- c("PriceLab/ghdb")
for(pkg in github.pkgs){
    install_github(pkg)
    }
PriceLab/bigFimo documentation built on April 14, 2025, 11:44 a.m.