ropensci-archive / taxizesoap

:no_entry: ARCHIVED :no_entry: Taxonomic Information from Around the Soap Web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

worms_children() encounters error when one of the AphiaIDs has no children

willgearty opened this issue · comments

When using worms_children(), if a vector of AphiaIDs is provided, but one or more of the AphiaIDs has no children, the function encounters the following error:
Error in rbind(deparse.level, ...) : numbers of columns of arguments do not match
I imagine this is due to the function trying to rbind the normal children results (which have 26 columns, in my experience) and the "noresults" results (which have two columns).

By the way, very excited that this package is working again! Thanks for all your support, Scott!

Thanks for the issue - Can you give example of id that doesn't have children

833826 has no children.
worms_children(ids=c(156484,833826)) should replicate the problem.

Thanks!

Actually, to be consistent with taxize, we shouldn't be rbinding results together from different taxa. Agreed?

I quite like the rbinded the results, but I suppose consistency with taxize would be good.

I think consistency is important to have. I'll include in the examples how to rbind results together.

@willgearty try again after reinstalling, let me know

Yep, seems to work great now. Thanks!

great 👍