title: error in install.packages 'rgdal': gdal-config not found - configure argument error
body: <p>I am trying to install <code>rgdal</code> package in rstudio. I am using centos8. I have already installed:</p>
  <pre><code>sudo yum install gdal gdal-devel
  sudo yum install geos geos-devel 
  </code></pre>
  <p>I have also tried to install using:</p>
  <pre><code>install.packages('rgdal', type = &quot;source&quot;, configure.args=c(
      '--with-gdal-config=/Library/Frameworks/GDAL.framework/Programs/gdal-config',
      '--with-proj-include=/Library/Frameworks/PROJ.framework/Headers',
      '--with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib'))
  </code></pre>
  <p>My error message:</p>
  <pre><code>configure: error: gdal-config not found - configure argument error.
  ERROR: configuration failed for package ‘rgdal’
  * removing ‘/home/motipai/R/x86_64-redhat-linux-gnu-library/4.0/rgdal’
  Warning in install.packages :
    installation of package ‘rgdal’ had non-zero exit status
  
  The downloaded source packages are in
      ‘/tmp/Rtmp5jeQl8/downloaded_packages’
  </code></pre>