clang <- grepl("R-[cf]lang", R.home()) options(available_packages_filters = c("R_version", "OS_type", "subarch", "CRAN", "duplicates")) options(timeout = 300) source('common.R') stoplist <- c(stoplist, CUDA, noinstall) if(getRversion() < "4.2.0") stoplist <- c(stoplist, noinstall_pat) opts <- list(Rserve = "--without-server") # udunits2 = "--with-udunits2-include=/usr/include/udunits2") Sys.setenv(DISPLAY = ':5', RMPI_TYPE = "OPENMPI", RMPI_INCLUDE = "/usr/include/openmpi-x86_64", RMPI_LIB_PATH = "/usr/lib64/openmpi/lib") if(R.version$status != "Under development (unstable)") stoplist <- c(stoplist, noinstall_pat) ## NB: only CRAN and BioC ## also do INLA #chooseBioCmirror(ind=1) setRepositories(ind=c(1:4)) options(repos = c(getOption('repos'), INLA = 'https://inla.r-inla-download.org/R/stable/')) old <- old.packages() .libPaths(c(.libPaths(), "~/R/test-dev", "~/R/test-BioCdata")) if(!is.null(old)) { old <- setdiff(rownames(old), noupdate) install.packages(old, configure.args = opts, dependencies=NA) } setRepositories(ind=1) options(available_packages_filters = c("R_version", "OS_type", "CRAN", "duplicates")) av <- available.packages()[, c("Package", "Version", "Repository", "NeedsCompilation", "Suggests")] nc <- av[, "NeedsCompilation"] == "yes" new <- new.packages(available = av[nc, ]) new <- new[! new %in% stoplist] #new <- new.packages() #new <- new[! new %in% stoplist] if(length(new)) { setRepositories(ind = c(1:4)) install.packages(new, configure.args = opts , dependencies=NA) }