How to install the rgeos package in R?

0

I'm trying to install the rgeos package in R and my operating system is Windows 7. I used the command install.packages('rgeos', type="source") and the following message appears:

installing 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.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

An existing rgeos folder already exists inside the R:

But even so when calling this library by the command library(rgeos) I get the message saying that there is no such package:

Error in library(rgeos) : there is no package called ‘rgeos’
    
asked by anonymous 20.04.2016 / 15:26

0 answers