I'm trying to install the package rgeos on linux. I get the following error:
system("sudo apt-get update") system("sudo apt install libgdal-dev -y") install.packages("rgeos") collect2: error: ld returned 1 exit status configure: Install failure: compilation and/or linkage problems. configure: error: initGEOS_r not found in libgeos_c. ERROR: configuration failed for package ‘rgeos’ I have already install the dev libgdal and it returns the "already installed" info if I try to run the sudo again.
How can I fix this? Thanks in advance!