I have a shiny app that runs fine on my computer. I use packages sf
, leaflet
, and tmap
. One of these requires the package lwgeom
as a dependency. While installing the package lwgeom
, shiny deployment gives me the following error message. What is GEOS
? And how can I upgrade GEOS
to 3.6.0 or later?
Building R package: lwgeom (0.2-4)
/mnt/packages/build /mnt
* installing to library ‘/opt/R/4.0.0/lib/R/library’
* installing *source* package ‘lwgeom’ ...
** package ‘lwgeom’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: gcc
configure: CXX: g++ -std=gnu++11
configure: pkg-config proj exists, will use it
configure: PROJ: 4.9.2
checking for pj_init_plus in -lproj... yes
checking PROJ: epsg found and readable... yes
configure: POSTGIS_PROJ_VERSION: 49
checking for geos-config... /usr/bin/geos-config
checking geos-config usability... yes
configure: GEOS: 3.5.1
checking GEOS version >= 3.6.0... no
configure: error: upgrade GEOS to 3.6.0 or later
ERROR: configuration failed for package ‘lwgeom’
* removing ‘/opt/R/4.0.0/lib/R/library/lwgeom’
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 741115836 failed: Error building image: Error building lwgeom (0.2-4). Build exited with non-zero status: 1
Execution halted
Update: I notified shinyapps.io and after several weeks they upgraded to to GEOS 3.8.0. So, now my app deploys fine.