We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1fc65e commit 7e5ef41Copy full SHA for 7e5ef41
R/download_predicate_dsl.R
@@ -309,8 +309,8 @@ pred_factory <- function(type) {
309
if (!length(key) == 1) stop("'key' must be length 1", call. = FALSE)
310
if (!length(value) == 1) stop("'value' must be length 1", call. = FALSE)
311
if (!is.null(checklistKey)) {
312
- if (key != "taxonKey") {
313
- stop("`checklistKey` can only be used when `key` is 'taxonKey'", call. = FALSE)
+ if (!key %in% c("taxonKey", "TAXON_KEY")) {
+ stop("`checklistKey` can only be used when `key` is 'taxonKey' or 'TAXON_KEY'", call. = FALSE)
314
}
315
if (!is_uuid(checklistKey)) {
316
stop("`checklistKey` must be a valid UUID", call. = FALSE)
0 commit comments