Skip to content

Commit 1dac72f

Browse files
authored
Remove duplicated definition of .getEnsemblSSL() (#129)
1 parent c219e62 commit 1dac72f

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: biomaRt
22
Title: Interface to BioMart databases (i.e. Ensembl)
3-
Version: 2.65.1
3+
Version: 2.65.2
44
Authors@R: c(
55
person("Steffen", "Durinck", , "biomartdev@gmail.com", role = "aut"),
66
person("Wolfgang", "Huber", role = "aut"),

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ INTERNAL CHANGES
77
o Coding style throughout the package has been harmonized using the air tool.
88
Contributors using RStudio, Positron or VS Code should have their code styled
99
automatically on save.
10+
o A duplicated definition of the `.getEnsemblSSL()` internal function has been
11+
removed.
1012

1113
CHANGES IN VERSION 2.64.0
1214
-------------------------

R/ensembl.R

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
## location of Ensembl specific functions
22

3-
.getEnsemblSSL <- function() {
4-
cache <- .biomartCacheLocation()
5-
bfc <- BiocFileCache::BiocFileCache(cache, ask = FALSE)
6-
if (.checkInCache(bfc, hash = "ensembl-ssl-settings-httr2")) {
7-
ensembl_config <- .readFromCache(bfc, "ensembl-ssl-settings-httr2")
8-
} else {
9-
ensembl_config <- .checkEnsemblSSL()
10-
.addToCache(bfc, ensembl_config, hash = "ensembl-ssl-settings-httr2")
11-
}
12-
return(ensembl_config)
13-
}
14-
153
.checkArchiveList <- function(https = TRUE, http_config = list()) {
164
## determine if a cached version exists and if it's less than one week old
175
cache <- .biomartCacheLocation()
@@ -311,7 +299,8 @@ useEnsembl <- function(
311299
)
312300
}
313301

314-
biomart <- switch(tolower(biomart),
302+
biomart <- switch(
303+
tolower(biomart),
315304
"ensembl" = "ENSEMBL_MART_ENSEMBL",
316305
"genes" = "ENSEMBL_MART_ENSEMBL",
317306
"snp" = "ENSEMBL_MART_SNP",

0 commit comments

Comments
 (0)