R/bioc.R

Defines functions bioc_repo bioc_version

bioc_version <- function(pkg = NULL) {
  if (is_installed("BiocManager")) {
    vn <- try(BiocManager::version(), silent = TRUE)
    if (inherits(vn, "numeric_version"))
      return(vn[, 1:2])
  }

  vn <- installed_version("BiocVersion")
  if (inherits(vn, "numeric_version"))
    return(vn[, 1:2])

  NULL
}

bioc_repo <- function(version) {
  paste0("https://bioconductor.org/packages/", version, "/bioc")
}

Try the updateme package in your browser

Any scripts or data that you put into this service are public.

updateme documentation built on May 29, 2024, 7:39 a.m.