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

Same issue as https://github.com/r-spatial/sf/issues/844 #2169

Closed
hjager opened this issue May 19, 2023 · 4 comments
Closed

Same issue as https://github.com/r-spatial/sf/issues/844 #2169

hjager opened this issue May 19, 2023 · 4 comments

Comments

@hjager
Copy link

hjager commented May 19, 2023

It is now 2023 and I'm having a similar problem to #844 from 2020 (#844) about lwgeom when running a shiny app after updating to R-4.3.0, Rstudio 2023.03.0 Build 386, and all packages including Rtools. See the error below. The shiny app's code is heavily dependent on sf. So far, i have tried uninstalling and reinstalling lwgeom. Can it be resolved on a windows system without having to build libraries in a tailored way as suggested in response to #844?

Loading required package: lwgeom
Linking to liblwgeom 3.0.0beta1 r16016, GEOS 3.9.1, PROJ 7.2.1
Error: package or namespace load failed for ‘lwgeom’:
.onAttach failed in attachNamespace() for 'lwgeom', details:
call: fun(libname, pkgname)
error: (converted from warning) GEOS versions differ: lwgeom has 3.9.1 sf has 3.11.1

@rsbivand
Copy link
Member

rsbivand commented May 19, 2023

Sorry, absolutely nothing to do with #844 at all. Those were on Linux with dynamic loading, you are on Windows using static builds. There in 4.3.0, I see:

> library(lwgeom)
Linking to liblwgeom 3.0.0beta1 r16016, GEOS 3.9.1, PROJ 7.2.1
Warning messages:
1: In fun(libname, pkgname) :
  GEOS versions differ: lwgeom has 3.9.1 sf has 3.11.1
2: In fun(libname, pkgname) :
  PROJ versions differ: lwgeom has 7.2.1 sf has 9.1.1

so undoubtedly a re-build of lwgeom needs to be triggered on CRAN. I'll link this issue to the lwgeom repo.

@rsbivand
Copy link
Member

There has been activity on the lwgeom repo recently, so a new version may be about to be submitted to CRAN, and thus triggering a rebuild.

@edzer
Copy link
Member

edzer commented May 22, 2023

New version on CRAN; windows binaries will appear in a few days.

@edzer edzer closed this as completed May 22, 2023
@hjager
Copy link
Author

hjager commented May 22, 2023

Thank you!

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