Pergunta

I have recently switched from windows to ubuntu and can't make the rgdal package working properly.

I know there are a lot of posts on this but I just can't make it work.

I have installed gdal following https://gist.github.com/lossyrob/4348503 but still rgdal is in my list of installed packages according to rgdal%in%installed.packages() but when I include with library(rgdal) it returns Error in library(rgdal) : there is no package called ‘rgdal’.

Any help is appreciated.

Foi útil?

Solução

So it was the gmail notifier after all that I had installed according to this post (in Italian sorry)...

This is how I did it, thanks to everybody, I wouldn't have made it without you guys!

So according to what was returned by sudo apt-get update and according to this post I unticked the similarly named PPA with the URL shown in the error message.

I re-ran what @EDi suggested sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable ; sudo apt-get update; sudo apt-get install libproj-dev and it worked like a charm!

I spent so much time on this.... Thanks everybody!

Outras dicas

I think there is also a binary package in the c2d4u repo:

sudo add-apt-repository ppa:marutter/c2d4u
sudo apt-get update
sudo apt-get install r-cran-rgdal

That way you don't have to compile it at all.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top