Skip to content

Commit

Permalink
add ... to classification when using NCBI
Browse files Browse the repository at this point in the history
related to #890
  • Loading branch information
zachary-foster committed Mar 9, 2023
1 parent b996e9c commit d940f1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/classification.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ classification.default <- function(sci_id, db = NULL, callopts = list(),
stats::setNames(classification(id, return_id = return_id, ...), sci_id)
},
ncbi = {
id <- process_ids(sci_id, db, get_uid, rows = rows)
id <- process_ids(sci_id, db, get_uid, rows = rows, ...)
stats::setNames(classification(id, callopts = callopts,
return_id = return_id), sci_id)
return_id = return_id, ...), sci_id)
},
eol = {
id <- process_ids(sci_id, db, get_eolid, rows = rows, ...)
Expand Down
2 changes: 1 addition & 1 deletion R/get_natservid.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ get_natservid <- function(sci_com, searchtype = "scientific", ask = TRUE,
assert(ask, "logical")
assert(messages, "logical")
assert_rows(rows)
if (!is.null(commnames)) {
if (!is.null(query)) {
lifecycle::deprecate_warn(when = "v0.9.97", what = "get_natservid(query)", with = "get_natservid(sci_com)")
sci_com <- query
}
Expand Down
2 changes: 1 addition & 1 deletion R/get_uid.R
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ get_uid_ <- function(sci_com, messages = TRUE, rows = NA, key = NULL,

key <- getkey(key, "ENTREZ_KEY")
if (!is.null(sciname)) {
lifecycle::deprecate_warn(when = "v0.9.97", what = "get_uid_(sciname)", with = "get_uid_(sci_com)")
lifecycle::deprecate_warn(when = "v0.9.97", what = "get_uid_(sciname)", with = "get_uid_(sci_com)")
sci_com <- sciname
}

Expand Down

0 comments on commit d940f1e

Please sign in to comment.