Error deploying app with rgeos package

I'm trying to publish a shiny app but get the following error when trying to build the rgeos package:

Error: Unhandled Exception: Child Task 559758244 failed: Error building image: Error building rgeos (0.4-1). Build exited with non-zero status: 1

0.4-1 is the latest version on CRAN, so I'm not sure what the problem could be.

(The app doesn't actually require rgeos - it works fine with or without it locally - but on I get disconnected when displaying one of the spatial polygons in leaflet, and get the following message in my log:

Warning: Error in loadNamespace: there is no package called ‘rgeos’

The only thing different about that polygon is that I removed some holes from it.)

I suspect that this change is the cause:

rstudio-user@71439faf81d5:/tmp/rgeos$ geos-config --libs
-L/usr/lib/x86_64-linux-gnu -lgeos-3.5.1
rstudio-user@71439faf81d5:/tmp/rgeos$ geos-config --cclibs
-L/usr/lib/x86_64-linux-gnu -lgeos
rstudio-user@71439faf81d5:/tmp/rgeos$ grep GEOS_LIBS configure
        GEOS_LIBS=`${GEOS_CONFIG} --cclibs`
rstudio-user@71439faf81d5:/tmp/rgeos$ dpkg-query --listfiles libgeos-3.5.1

Try using the older version of rgeos for now.

Thanks! Rolling back to 0.3-28 solved it.

This issue has blocked all other dependencies commit.

Topic closed because the github issues thread is probably a better place for this discussion to continue.

This issue should be fixed with rgeos 0.4-2

1 Like