viz/srm.vs.mrna/docker/installTrenaCodePrequisites.R

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


code.pkgs <- c("htmlwidgets",
               "jsonlite",
               "rstudioapi",
               "htmltools",
               "r2d3"
               )

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
PriceLab/TrenaProjectErythropoiesis documentation built on Jan. 10, 2022, 3:55 a.m.