Replacing MRAN mirror with posit
This commit is contained in:
parent
022f809332
commit
2f430da1c6
|
@ -68,9 +68,9 @@ let
|
|||
hydraPlatforms = [];
|
||||
};
|
||||
deriveCran = mkDerive {
|
||||
mkHomepage = {name, snapshot, ...}: "http://mran.revolutionanalytics.com/snapshot/${snapshot}/web/packages/${name}/";
|
||||
mkHomepage = {name, snapshot, ...}: "https://cran.r-project.org/${snapshot}/web/packages/${name}/";
|
||||
mkUrls = {name, version, snapshot}: [
|
||||
"http://mran.revolutionanalytics.com/snapshot/${snapshot}/src/contrib/${name}_${version}.tar.gz"
|
||||
"https://packagemanager.rstudio.com/cran/${snapshot}/src/contrib/${name}_${version}.tar.gz"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env Rscript
|
||||
library(data.table)
|
||||
library(jsonlite)
|
||||
library(parallel)
|
||||
library(BiocManager)
|
||||
cl <- makeCluster(10)
|
||||
|
@ -11,12 +12,13 @@ if ("release" %in% biocVersion$BiocStatus) {
|
|||
} else {
|
||||
biocVersion <- max(as.numeric(as.character(biocVersion$Bioc)))
|
||||
}
|
||||
snapshotDate <- Sys.Date()-1
|
||||
dates <- stream_in(url("https://packagemanager.rstudio.com/__api__/repos/2/transaction-dates"), verbose = FALSE)
|
||||
snapshotDate <- as.Date(dates[nrow(dates), "alias"])
|
||||
|
||||
mirrorUrls <- list( bioc=paste0("http://bioconductor.statistik.tu-dortmund.de/packages/", biocVersion, "/bioc/src/contrib/")
|
||||
, "bioc-annotation"=paste0("http://bioconductor.statistik.tu-dortmund.de/packages/", biocVersion, "/data/annotation/src/contrib/")
|
||||
, "bioc-experiment"=paste0("http://bioconductor.statistik.tu-dortmund.de/packages/", biocVersion, "/data/experiment/src/contrib/")
|
||||
, cran=paste0("http://mran.revolutionanalytics.com/snapshot/", snapshotDate, "/src/contrib/")
|
||||
, cran=paste0("https://packagemanager.rstudio.com/cran/", snapshotDate, "/src/contrib/")
|
||||
)
|
||||
|
||||
mirrorType <- commandArgs(trailingOnly=TRUE)[1]
|
||||
|
|
|
@ -15,6 +15,7 @@ stdenv.mkDerivation {
|
|||
(rWrapper.override {
|
||||
packages = with rPackages; [
|
||||
data_table
|
||||
jsonlite
|
||||
parallel
|
||||
BiocManager
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue