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

Resolve issues w/ hardcoded proj4string in some ranges_* functions #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

levisc8
Copy link

@levisc8 levisc8 commented May 2, 2022

This PR resolves the failures mentioned in #32. I've updated the code in BIEN_ranges_load_species and in BIEN_ranges_species to use

..., p4s = sf::st_crs(4326)[[2]], ....
instead of

..., p4s = "+init=epsg:4326",...

The latter was causing some errors with calls to CRS(), which were returning NA. I think it's probably because of an update to CRS() in the sp package.

I've had trouble running all of the tests to verify that everything works, but I can run individual tests related to these functions and they now produce the expected results.

Hope this is helpful - let me know if you have any questions/comments! And thanks for making BIEN!

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

Successfully merging this pull request may close these issues.

None yet

1 participant