Skip to content

Commit fcd888f

Browse files
author
hornik
committed
Add getters for BioC aliases and rdxrefs dbs.
git-svn-id: https://svn.r-project.org/R/trunk@88427 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 226cb0f commit fcd888f

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/library/tools/R/CRANtools.R

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File src/library/tools/R/CRANtools.R
22
# Part of the R package, https://www.R-project.org
33
#
4-
# Copyright (C) 2014-2022 The R Core Team
4+
# Copyright (C) 2014-2025 The R Core Team
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -782,3 +782,23 @@ function(remap = TRUE)
782782
}
783783
db
784784
}
785+
786+
.get_BioC_repository_URL <-
787+
function(which = "BioCsoft")
788+
{
789+
which <- match.arg(which)
790+
repos <- getOption("repos")
791+
if(!is.null(repos) && !is.na(u <- repos[which]))
792+
return(u)
793+
utils:::.get_repositories()[which, "URL"]
794+
}
795+
796+
BioC_aliases_db <-
797+
function()
798+
read_CRAN_object(.get_BioC_repository_URL(),
799+
"src/contrib/Meta/aliases.rds")
800+
801+
BioC_rdxrefs_db <-
802+
function()
803+
read_CRAN_object(.get_BioC_repository_URL(),
804+
"src/contrib/Meta/rdxrefs.rds")

0 commit comments

Comments
 (0)