Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rank error with worms_downstream #824

Closed
cgallut opened this issue May 23, 2020 · 2 comments
Closed

Rank error with worms_downstream #824

cgallut opened this issue May 23, 2020 · 2 comments
Labels
Milestone

Comments

@cgallut
Copy link

cgallut commented May 23, 2020

Hi,
I encountered the same problem as in issue #821 with the following command:

Pedinidae <- worms_downstream(id = 123165, downto = "species")

It yields this error:
Error in vapply(x$rank, function(z) which_rank(z), 1) :
les valeurs doivent être d'une longueur 1,
mais FUN(X[[14]]) a une longueur 0

I retrieved all children from AphiaID 123165 and it seems that the problem comes from the rank
id = 155 , rank = "supertribe" which appears to be missing in worrms_ranks.

The following commands also yield an error:

Heteroconchia <- worms_downstream(id = 1424949, downto = "species")
Caenogastropoda <- worms_downstream(id = 224570, downto = "species")

Error in vapply(x$rank, function(z) which_rank(z), 1) :
les valeurs doivent être d'une longueur 1,
mais FUN(X[[1]]) a une longueur 0

Here it seems that rank: id = 85, rank = "Subterclass" is the reason.

Thanks for the great work, it saved me days of work!!

Session Info
R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.6
taxize_0.9.96 worrms_0.4.0 
@sckott sckott added the bug label May 27, 2020
@sckott sckott added this to the v0.9.97 milestone May 27, 2020
@sckott
Copy link
Contributor

sckott commented May 27, 2020

thanks very much for the report! surely many others have this issue, so many people will benefit from this.

fix coming

@sckott sckott closed this as completed in 04dbe7e May 27, 2020
@sckott
Copy link
Contributor

sckott commented May 27, 2020

try again after reinstalling remotes::install_github("ropensci/taxize")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants