Similar issue here when using the SF package in a Shiny deployment. App worked fine last week, made minor change to a text box today, but now every redeployment errors-out.
Error in value[[3L]](cond) : package or namespace load failed for ‘sf’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/opt/R/3.6.0/lib/R/library/sf/libs/sf.so': /opt/R/3.6.0/lib/R/library/sf/libs/sf.so: undefined symbol: _ZN17GDALDriverManager14GetDriverCountEv Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted
Does anyone know of any work-arounds or temporary fixes?
I ran into the same problem yesterday: everything works locally, fails while deploying to shinyapps.io
Instead of lwgeom, the failure from the sf shared object with that undefined symbol comes when trying to lazy load geogrid. My app doesn't call sf neither geogrid, but I think these come up due to my use of geofacet...
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/opt/R/3.5.0/lib/R/library/sf/libs/sf.so':
/opt/R/3.5.0/lib/R/library/sf/libs/sf.so: undefined symbol: _ZN17GDALDriverManager14GetDriverCountEv
ERROR: lazy loading failed for package ‘geogrid’
removing ‘/opt/R/3.5.0/lib/R/library/geogrid’################################# End Task Log #################################
Error: Unhandled Exception: Child Task 613846027 failed: Error building image: Error building geogrid (0.1.1). Build exited with non-zero status: 1
Execution halted
Not sure if this is what fixed it or not, but in shinyapps.io under the app's advanced settings I unchecked Package Cache and then redeployed, this fixed my errors with rgdal.
I noticed you deleted the later post in which you said to turn back on the Package Cache in order to speed up, I guess because you realized that made the error show up again (at least for me it did).
I will live with the slow deploying without Package Cache for now but it would be great if there could be a "faster" solution.
I am experiencing this same problem that has been discussed last year. A shiny app using tmap that was working until today, now it fails to deploy with a:
checking proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
configure: error: proj_api.h not found in standard or given locations.
ERROR: configuration failed for package ‘lwgeom’
I tried turning off the Package Cache and still does not work. Any ideas???