Skip to content

Commit

Permalink
early Sept packages
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhgn committed Oct 15, 2024
1 parent ce5c5ba commit 6391375
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docker/dockerfiles/r/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN bash /tmp/gcta/install_gcta.sh && \
# R packages.
# CRAN packages
WORKDIR /tmp/
RUN R -e "install.packages('devtools', repos='https://packagemanager.posit.co/cran/__linux__/jammy/2024-10-01', dependencies=c('Depends', 'Imports', 'LinkingTo'))"
RUN R -e "install.packages('devtools', repos='https://packagemanager.posit.co/cran/__linux__/jammy/2024-09-01', dependencies=c('Depends', 'Imports', 'LinkingTo'))"
COPY /scripts/R/cran.R .
RUN Rscript cran.R

Expand Down
9 changes: 4 additions & 5 deletions docker/scripts/R/bioconductor.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
dependencies <- c('Depends', 'Imports', 'LinkingTo')
upgrade <- 'default'

url = "https://packagemanager.posit.co/bioconductor/__linux__/jammy/2024-10-01"
url = "https://packagemanager.posit.co/bioconductor/__linux__/jammy/2024-09-02"
# Configure BioCManager to use Posit Package Manager:
options(BioC_mirror = "https://packagemanager.posit.co/bioconductor/2024-10-01")
options(BIOCONDUCTOR_CONFIG_FILE = "https://packagemanager.posit.co/bioconductor/2024-10-01/config.yaml")
options(BioC_mirror = "https://packagemanager.posit.co/bioconductor/2024-09-02")
options(BIOCONDUCTOR_CONFIG_FILE = "https://packagemanager.posit.co/bioconductor/2024-09-02/config.yaml")

# Configure a CRAN snapshot compatible with Bioconductor 3.19:
options(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/jammy/2024-10-01"))
options(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/jammy/2024-09-01"))

# Bioconductor packages
packages <- c(
Expand All @@ -32,7 +32,6 @@ library(devtools)
for (package in packages) {
tryCatch(
{
# devtools::install_bioc(package, mirror=url, dependencies=dependencies, upgrade=upgrade)
BiocManager::install(package, version='3.19')
},
error = function(e) {
Expand Down
3 changes: 1 addition & 2 deletions docker/scripts/R/cran.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require(devtools)
url <- "https://packagemanager.posit.co/cran/__linux__/jammy/2024-10-01"
url <- "https://packagemanager.posit.co/cran/__linux__/jammy/2024-09-01"
dependencies <- c('Depends', 'Imports', 'LinkingTo')
upgrade <- 'default'

Expand Down Expand Up @@ -103,7 +103,6 @@ for (package in packages) {
tryCatch(
{
devtools::install_cran(package, dependencies=dependencies, upgrade=upgrade)
# devtools::install_version(package, version=version, repos=url, dependencies=dependencies, upgrade=upgrade)
},
error = function(e) {
cat("Error occurred during package installation:\n")
Expand Down
2 changes: 1 addition & 1 deletion docker/scripts/R/github.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
url <- "https://packagemanager.posit.co/cran/__linux__/jammy/2024-10-01"
url <- "https://packagemanager.posit.co/cran/__linux__/jammy/2024-09-01"
dependencies <- c('Depends', 'Imports', 'LinkingTo')
upgrade <- 'default'
auth_token <- Sys.getenv("github_pat")
Expand Down

0 comments on commit 6391375

Please sign in to comment.