Skip to content

Commit 366574c

Browse files
committed
More fixes following review
1 parent 93d2b57 commit 366574c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* `chembl_query()` can now perform both online queries (`mode = "ws"`, default) and offline retrievals (`mode = "offline"`) from a local ChEMBL database. Offline mode currently supports the following resources: `activity`, `assay`, `atc_class`, `binding_site`, `biotherapeutic`, `cell_line`, `chembl_id_lookup`, `compound_record`, `document`, `drug`,`drug_indication`, `drug_warning`, `go_slim`, `molecule`.
1313
* Results for online and offline queries are identical for most resources. If there are differences, the offline version throws informative warnings.
1414
* Added a new function `db_download_chembl()` for downloading ChEMBL for fully offline access.
15-
* Added a new function `chembl_check_db_version()` which checks the version of the local ChEMBL database and throws an error if it cannot find any. Used for working with pinned versions of ChEMBL in offline mode.
15+
* Added a new function `chembl_check_db_version()` which retrieves a pinned default ChEMBL database version from .Renviron or .Rprofile and throws an error if none is set. Used for working with pinned versions of ChEMBL in offline mode.
1616

1717
## OTHER
1818

R/chembl.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ db_download_chembl <- function(
3030
if (is.null(version)) {
3131
version <- try(chembl_check_db_version(), silent = TRUE)
3232
if (inherits(version, "try-error")) {
33-
stop("No default ChEMBL database version set. See ?db_download_chembl() for more details.")
33+
stop("No default ChEMBL database version set. See ?db_download_chembl for more details.")
3434
}
3535
} else if (version == "latest") {
3636
status <- chembl_status(verbose = verbose)

R/chembl_offline.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ chembl_check_db_version <- function() {
1919
x <- Sys.getenv("CHEMBL_DB_VERSION", "")
2020
if (x == "") x <- getOption("chembl_db_version", "")
2121
if (x == "") {
22-
stop("No default ChEMBL database version set. See ?chembl_check_db_version() for details.")
22+
stop("No default ChEMBL database version set. See ?chembl_check_db_version for details.")
2323
}
2424
x
2525
}

0 commit comments

Comments
 (0)