Skip to content

Commit

Permalink
Set R version string
Browse files Browse the repository at this point in the history
  • Loading branch information
lazappi committed Jan 16, 2024
1 parent 37b63e5 commit ae9d6f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ jobs:
biocmap <- BiocManager:::.version_map_get_online(biocconfig)
biocversion <- subset(biocmap, BiocStatus == biocrelease)[, 'Bioc']
rversion <- subset(biocmap, BiocStatus == biocrelease)[, 'R']
rversion_str <- as.character(rversion)
# Use R devel for BioC devel between November and May
if (biocrelease == "devel") {
current_month <- as.numeric(format(Sys.Date(), "%m"))
if (current_month >= 11 || current_month <= 5) {
rversion = "devel"
}
rversion <- "devel"
rversion_str <- "devel" }
}
writeLines(as.character(c(biocversion, rversion)),
"versions.txt")
Expand Down

0 comments on commit ae9d6f3

Please sign in to comment.