Installing rgeos/rgdal packages fail in RStudio with the errors "configure: error: geos-config not found or not executable." and "configure: error: gdal-config not found or not executable." respectively. This is a known problem with installing these packages in Linux, and requires sudo access to install the relevant additional libraries via the terminal. Please see here (https://philmikejones.me/tutorials/2014-07-14-installing-rgdal-in-r-on-linux/) for details.
Steps to reproduce the problem
Attempt to install packages rgdal/rgeos via install.packages().
What happened?
Installing rgeos/rgdal packages fail in RStudio with the errors "configure: error: geos-config not found or not executable." and "configure: error: gdal-config not found or not executable." respectively. This is a known problem with installing these packages in Linux, and requires sudo access to install the relevant additional libraries via the terminal. Please see here (https://philmikejones.me/tutorials/2014-07-14-installing-rgdal-in-r-on-linux/) for details.
Steps to reproduce the problem
Attempt to install packages rgdal/rgeos via install.packages().
Expected behaviour
Packages install correctly and without errors