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

Issue with downloading updated IUCN data (2023-1) #54

Closed
Gopal-Murali opened this issue Jan 3, 2024 · 3 comments
Closed

Issue with downloading updated IUCN data (2023-1) #54

Gopal-Murali opened this issue Jan 3, 2024 · 3 comments

Comments

@Gopal-Murali
Copy link

Hello,
The rl_sp(all = TRUE) function returns the previous version’s data (153,732 species). But the total assessed IUCN species count in the recent update (2023-1; December 11 2023 release) appears to be 157,190 (according to rl_sp_count).

I am in need of habitat and threat data for the 2023-1 version, but without the IUCN species names, I could not use the rl_habitats function to retrieve the updated information.

Is there an alternative approach to access the updated 2023-1 version?

Thank you,
Gopal

@willgearty
Copy link
Contributor

Thanks for reporting this issue @Gopal-Murali. I'm able to reproduce the inconsistency between rl_sp and rl_sp_count. However, both of these functions are pulling straight from the IUCN API with very little manipulation after the fact, so the issue is most likely on their end. For example, you'll see the last page of species in the API has 3732 species, matching the previous version's data. However, the species count in the API lists 157,190, matching the newest release.

Based on discussion on #52, it seems like the API is currently having various issues and a new version is currently under development, which may explain the inconsistency. Perhaps @simon-tarr can provide some insight or a viable alternative?

@simon-tarr
Copy link

simon-tarr commented Feb 13, 2024

Sorry folks, I've only just seen this. The counts were out due to a caching issue on the database after the 2023-1 update. We flushed the cache and numbers should be reporting correctly now.

The v4 API is coming along nicely, we're nearly ready for beta testers (hopefully in the next week or two)

@willgearty this issue can probably be closed now.

@willgearty
Copy link
Contributor

Yes, both endpoints now report 160,647 species in the API, thanks @simon-tarr!

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

No branches or pull requests

3 participants