Skip to content

Commit

Permalink
set names of list input to set_taxonomicCoverage to NULL (#280)
Browse files Browse the repository at this point in the history
should fix bug where character vector input creates named list elements in <taxonomicClassification> and therefore invalid EML
  • Loading branch information
atn38 authored and cboettig committed Jul 4, 2019
1 parent a658356 commit aa99370
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/set_coverage.R
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ set_taxonomicCoverage <- function(sci_names, expand = FALSE, db = "itis") {
} else if (is.data.frame(sci_names)) {
set_taxonomicCoverage.data.frame(sci_names)
} else if (is.list(sci_names)) {
names(sci_names) <- NULL
set_taxonomicCoverage.list(sci_names)
} else {
stop("Incorrect format: sci_names
Expand Down

0 comments on commit aa99370

Please sign in to comment.