How to install the rges package in R?

Asked

Viewed 249 times

0

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

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\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

There is already a hot folder installed inside the R folder:inserir a descrição da imagem aqui

But even so by calling this library 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’
  • 4

    tried to install it like this: install.packages('rgeos'). I just installed in windows 8 and linux without any problem.

  • Try to open cmd as administrator, error in make, maybe it is due to lack of permission

  • Yeah, I tried and it didn’t work.

  • I joined as an administrator and when I tried to install I got the message: "installation of package ːrgeos' had non-zero Exit status"

  • 1

    Did he make the same mistake when he tried it the way Daniel suggested, or was it another problem?

  • I had joined R as an administrator and it didn’t work now I tried again as an administrator in Rstudio and now it worked. Thanks for the personal attention!

  • I did a search for this mistake, but I was unsuccessful. My suggestion is to backup your data and update your R version after this reinstalls your packages. Take a look at these two topics: i) http://answall.com/a/107075/27863; ii) http://answall.com/a/121550/27863

  • 1

    The ideal was to close this issue...

  • @Cloveshadrian, please mark that your answer "has already been answered", close her, or even answer her in the appropriate field. so that it no longer appears as 'unanswered'. This helps everyone who has already helped you :D thank you!!

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.