I am attempting to install R 'sf' on a Centos machine. After extended problems with gdal (now fixed by building from source), I now get:
Error: package or namespace load failed for ‘sf’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/my_user_name/R/x86_64-redhat-linux-gnu- library/3.4/sf/libs/sf.so': /home/my_user_name/R/x86_64-redhat-linux-gnu-library/3.4/sf/libs/sf.so: undefined symbol: ZN15OGRMultiSurface18CastToMultiPolygonEPS
How can I resolve this error?