source("http://bioconductor.org/biocLite.R") courseRepos <- "http://bioconductor.org/course-packages" allRepos <- c(courseRepos, biocinstallRepos()) allPkgs <- c("EfficientR", "foreach", "doMC", "ncdf", "RSQLite") update.packages(repos = allRepos, ask = FALSE) newPkgs <- setdiff(allPkgs, installed.packages()) if (length(newPkgs) > 0) install.packages(newPkgs, repos = allRepos)