traitdataform
traitdataform copied to clipboard
get_gbif_taxonomy fails on synonymous genus
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