Skip to content

Commit

Permalink
Update bold_identify_taxonomy.R
Browse files Browse the repository at this point in the history
used '\' instead of 'function' ><
  • Loading branch information
salix-d authored Sep 6, 2023
1 parent dc46f3b commit 40f08e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/bold_identify_taxonomy.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ methods::setMethod(
definition = function(x, taxOnly = TRUE) {
b_assert_length(x, len = 0L, name = "x")
taxOnly <- b_assert_logical(taxOnly, name = "taxOnly")
hasID <- vapply(x, \(x) "ID" %in% colnames(x), NA)
hasID <- vapply(x, function(x) "ID" %in% colnames(x), NA)
if (all(!hasID)) {
stop("no column 'ID' found in x")
} else {
Expand Down

0 comments on commit 40f08e8

Please sign in to comment.