chronosphere-info / r_client

R client for the chronosphere
https://chronosphere.info/r_client/
GNU General Public License v3.0
6 stars 4 forks source link

Problem with rgdal #1

Open mcranium opened 4 years ago

mcranium commented 4 years ago

I installed chronosphere from CRAN to R v. 3.6.2 on Ubuntu 18.04. I could not load polygons via the command

maps <- reconstruct("plates", age=c(300,295))

as there was an issue with rgdal.

Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/home/mario/R/x86_64-pc-linux-gnu-library/3.6/rgdal/libs/rgdal.so': libproj.so.12: cannot open shared object file: No such file or directory

The same happened when I installed chronosphere from github. Reinstalling rgdal and restarting R did the thing.

Best wishes, Mario

adamkocsis commented 4 years ago

Hi Mario,

The function uses a simple readOGR() call. Given that it knew that it should be looking for the rgdal binaries, it seems like the issue is unrelated to the chronosphere and you simply had something wrong with your rgdal installation. This would not be surprising given that you need external libraries to make rgdal work on GNU/Linux. Maybe some issues during updating? Let me know if the problem occurs again.

Best,

Adam