Skip to main content
1 de 2
Cloves Paiva
  • 368
  • 1
  • 4
  • 11

Como instalar o pacote rgeos no R?

Estou tentando instalar o pacote rgeos no R e meu sistema operacional é o Windows 7. Usei o comando install.packages('rgeos', type="source") e me aparece a seguinte mensagem:

nstalling package into ‘C:/Users/Cloves/Documents/R/win-library/3.2’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/src/contrib/rgeos_0.3-19.tar.gz' Content type 'application/x-gzip' length 252533 bytes (246 KB) downloaded 246 KB

  • installing source package 'rgeos' ... ** package 'rgeos' successfully unpacked and MD5 sums checked

WARNING: this package has a configure script It probably needs manual configuration


** libs Warning: execução do comando 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-32~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-32~1.2/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="rgeos.dll" OBJECTS="dummy.o init.o local_stubs.o rgeos.o rgeos_R2geos.o rgeos_R2geosMP.o rgeos_bbox.o rgeos_buffer.o rgeos_coord.o rgeos_geos2R.o rgeos_misc.o rgeos_poly2nb.o rgeos_predicate_binary.o rgeos_predicate_unary.o rgeos_topology.o rgeos_topology_binary.o rgeos_validate.o rgeos_wkt.o"' teve status 127 ERROR: compilation failed for package 'rgeos'

  • removing 'C:/Users/Cloves/Documents/R/win-library/3.2/rgeos' Warning in install.packages : running command '"C:/PROGRA~1/R/R-32~1.2/bin/i386/R" CMD INSTALL -l "C:\Users\Cloves\Documents\R\win-library\3.2" C:\Users\Cloves\AppData\Local\Temp\Rtmp44In2b/downloaded_packages/rgeos_0.3-19.tar.gz' had status 1 Warning in install.packages : installation of package ‘rgeos’ had non-zero exit status

The downloaded source packages are in ‘C:\Users\Cloves\AppData\Local\Temp\Rtmp44In2b\downloaded_packages

Já existe uma pasta rgeos instalada dentro da pasta do R:inserir a descrição da imagem aqui

Mas mesmo assim ao chamar esta biblioteca pelo comando library(rgeos) me aparece a mensagem dizendo que não existe esse pacote:

Error in library(rgeos) : there is no package called ‘rgeos’

Cloves Paiva
  • 368
  • 1
  • 4
  • 11