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 shinyapps.io 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`
PKG_LIBS="${PKG_LIBS} ${GEOS_LIBS} ${GEOS_CLIBS}"
rstudio-user@71439faf81d5:/tmp/rgeos$ dpkg-query --listfiles libgeos-3.5.1
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libgeos-3.5.1
/usr/share/doc/libgeos-3.5.1/changelog.Debian.gz
/usr/share/doc/libgeos-3.5.1/copyright
/usr/share/doc/libgeos-3.5.1/NEWS.Debian.gz
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libgeos-3.5.1.so

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

https://r-forge.r-project.org/scm/viewvc.php/pkg/configure?root=rgeos&r1=574&r2=580

1 Like