I've been developing a pretty basic package for survey analysis based on tidy, and included 'sf' as a dependency for future mapping functions I haven't built yet but intend to. It works perfectly fine on my R desktop, but on RStudio cloud, I get the following error when I try to load 'sf' on RStudio.cloud:
Error: package or namespace load failed for ‘sf’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/sf/libs/sf.so':
/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/sf/libs/sf.so: undefined symbol: _ZN17GDALDriverManager14GetDriverCountEv
When I do this on my desktop, I get this:
Linking to GEOS 3.6.1, GDAL 2.1.3, PROJ 4.9.3
Some googling has given me the impression this is a gdal/geos issue, but I don't exactly understand why or how to fix it.
Here is the current active project in which I have only installed dependencies and compiled my package: https://rstudio.cloud/project/425368
Any help would be great, thanks!
UPDATE: This is only happening with sf 0.7-7. Works on R desktop (OSX), but breaks in Rstudio.cloud. If I revert back to sf 0.7-4 on Rstudio.cloud, everything works just fine.