title: namespace load failed for ‘sf’ (R package) , unable to load shared object
body: <p>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:</p>
  
  <pre><code>Error: package or namespace load failed for ‘sf’ in dyn.load(file, DLLpath = DLLpath, ...):
  </code></pre>
  
  <p>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: <em>ZN15OGRMultiSurface18CastToMultiPolygonEPS</em></p>
  
  <p>How can I resolve this error? </p>