R/install.R

Defines functions installReps

Documented in installReps

installReps <- function(repNames = "aData", lib = .libPaths()[1], 
                        type = getOption("pkgType")) {

    cat("Using library path: ", lib, "\n", sep = "")
    
    
    for (repName in repNames) {
        packages <- available.packages(contrib.url(repositories()[repName]), 
                                                   type)
        cat(paste("Installing/updating all packages from repository ", repName, 
            ":\n", sep = ""))
        print(packages[,"Package"])
        install.packages(packages[,"Package"], lib, repositories()[repName], 
                         type=type)
    }
}

Try the webbioc package in your browser

Any scripts or data that you put into this service are public.

webbioc documentation built on Nov. 8, 2020, 5:56 p.m.