rrgdal

how to install rgdal package


I have been faced a problem when I tried ti install rgdal package in rstudio. Terminal caught this: Warning in install.packages : installation of package ‘rgdal’ had non-zero exit status

I tried this: > install.packages('rgdal',repos="http://www.stats.ox.ac.uk/pub/RWin") but terminal caught: Warning in install.packages : package ‘rgdal’ is not available (for R version 3.5.2)

I tried to reinstal sp. No reslut. How to fix it?? OS - Elementary OS 5.0 r version - 3.5.2


Solution

  • It should be sufficient to run install.packages('rgdal'). R will ask you to select a mirror where the "0-Cloud [https]" mirror should work. The package rgdal is available there. The mentioned repository http://www.stats.ox.ac.uk/pub/RWin does not provide the R package.