vijaybarve / taxotools

Tools to Handle Taxonomic Lists
5 stars 1 forks source link

cast_cs_field breaks of single record is passed #98

Closed vijaybarve closed 3 years ago

vijaybarve commented 3 years ago

Error can be replicated with the following code

> scnames <- c("Abrothrix longipilis", "Abrothrix jelskii")
> SynList <- list_itis_syn(scnames)
> cast_cs_field(SynList[1,],"canonical","synonym")
Error in if (tdata$pri[i] == oldpri) { : 
  missing value where TRUE/FALSE needed