Error installing R package for Linux
It seems that when running R in Linux is necessary to install some build tools. As in this case, in the terminal:
sudo apt-get install libgeos-dev
Then try package install again.
I solved it with the following:
cd /optgit clone https://github.com/libgeos/geoscd geosexport CC='clang' && export CXX='clang++' && export OBJC='clang'./autogen.sh./configuremakesudo -EH make installRinstall.packages('rgeos')
NB: export clang
is particular to me; I am just pasting my exact solution.