lol

rPackages: autoset bioconductor ver to match R ver

BioConductor releases are tied to specific R releases.

Updating the package set now automatically selects the
correct version of bioconductor to match the current version of
R.

+9 -1
+8 -1
pkgs/development/r-modules/generate-r-packages.R
··· 1 1 #!/usr/bin/env Rscript 2 2 library(data.table) 3 3 library(parallel) 4 + library(BiocManager) 4 5 cl <- makeCluster(10) 5 6 6 - biocVersion <- 3.12 7 + biocVersion <- BiocManager:::.version_map() 8 + biocVersion <- biocVersion[biocVersion$R == getRversion()[, 1:2],c("Bioc", "BiocStatus")] 9 + if ("release" %in% biocVersion$BiocStatus) { 10 + biocVersion <- as.numeric(as.character(biocVersion[biocVersion$BiocStatus == "release", "Bioc"])) 11 + } else { 12 + biocVersion <- max(as.numeric(as.character(biocVersion$Bioc))) 13 + } 7 14 snapshotDate <- Sys.Date()-1 8 15 9 16 mirrorUrls <- list( bioc=paste0("http://bioconductor.statistik.tu-dortmund.de/packages/", biocVersion, "/bioc/src/contrib/")
+1
pkgs/development/r-modules/generate-shell.nix
··· 12 12 packages = with rPackages; [ 13 13 data_table 14 14 parallel 15 + BiocManager 15 16 ]; 16 17 }) 17 18 ];