traitdataform icon indicating copy to clipboard operation
traitdataform copied to clipboard

get_gbif_taxonomy fails on synonymous genus

Open alexpiper opened this issue 5 years ago • 0 comments

Hi,

Ive encountered an issue with the get_gbif_taxonomy breaking when trying to resolve a synonymous genus. See below example:

traitdataform::get_gbif_taxonomy("Epiptera septentrionalis",subspecies = FALSE, verbose=TRUE, higherrank=FALSE, fuzzy=TRUE ,resolve_synonyms = TRUE )

The problem seems to be that a taxon is flagged as synonymous at any rank, but this function conducts a new get_gbifid_ search for only the species:

taxize::get_gbifid_(temp[[i]]$species[which.max(temp[[i]]$confidence)], messages = verbose)

Which is NULL, breaking the function

alexpiper avatar Aug 14 '19 03:08 alexpiper