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

BIEN_ranges_load_species fails with hardcoded proj4string #32

Open
levisc8 opened this issue May 2, 2022 · 0 comments
Open

BIEN_ranges_load_species fails with hardcoded proj4string #32

levisc8 opened this issue May 2, 2022 · 0 comments

Comments

@levisc8
Copy link

levisc8 commented May 2, 2022

I'm trying to download a set of range maps for a tutorial in an R package I'm building, and noticed that BIEN_ranges_load_species() now fails persistently, probably due to an update to sp/sf.

xanthium_strumarium <- BIEN_ranges_load_species(species = "Xanthium strumarium")

Error in CRS(p4s): NA

I tracked down the issue to here. It seems that this format for proj4string's is no longer used(?).

I've come up with a solution for this that replaces the hardcoded string with st_crs(4326)[[2]], but I'm not sure how sustainable that is. I'm happy to create a PR that introduces this temporary fix though.

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

1 participant