Estou tentando instalar o pacote "geobr", mas ele sempre pede para instalar o pacote "sf", que também dá problema na hora de instalar. Uso Ubuntu 20.04.
install.packages('geobr')
Installing package into ‘/home/palloma/R/x86_64-pc-linux-gnu-library/4.1’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘geobr’ is not available for this version of R
A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Erro do sf:
install.packages('sf')
Installing package into ‘/home/palloma/R/x86_64-pc-linux-gnu-library/4.1’ (as ‘lib’ is unspecified) tentando a URL 'https://cloud.r-project.org/src/contrib/sf_1.0-7.tar.gz' Content type 'application/x-gzip' length 3529597 bytes (3.4 MB) ================================================== downloaded 3.4 MB
installing source package ‘sf’ ... ** package ‘sf’ successfully unpacked and MD5 sums checked ** using staged installation configure: CC: gcc configure: CXX: g++ -std=gnu++11 checking for gdal-config... no no configure: error: gdal-config not found or not executable. ERROR: configuration failed for package ‘sf’
removing ‘/home/palloma/R/x86_64-pc-linux-gnu-library/4.1/sf’ Warning in install.packages : installation of package ‘sf’ had non-zero exit status
The downloaded source packages are in ‘/tmp/Rtmpsl04dl/downloaded_packages’
sf
.sf
, siga a resposta do Carlos Eduardo Lagosta para o pacotegeobr
. Mas verifique as datas to ficheiro do CRAN e do GitHub e escolha a mais recente. Só a do GitHub parece estar a ser ativamente desenvolvida.