RGeo errors on shinyapps.io

134 views
Skip to first unread message

Rafael Monge Montenegro

unread,
Jan 6, 2016, 6:18:57 PM1/6/16
to ShinyApps Users
Hi,

I'm currently creating a shiny app. The application works fine in my local machine with runApp(), but when deployed to shinyapps.io it fails.

Here is the relevant log entry.(The complete log is also attached):
2016-01-06T22:42:37.853147+00:00 shinyapps[76816]: Error in rgeos::gUnaryUnion(y) : No UnaryUnion in this version of GEOS

I belive this is caused by the rGeos package, which depends on  the GEOS C library. Older versions  of that library (prior to 2011) to do not have the gUnaryUnion method. This in turn causes the r package to fail. Updating the underlying C library in your servers should presumably fix the issue.

The rGeos package is quite important for any geographical work in R, so not being able to use it is inconvenient to many users. 

Any chance this can be fixed?

Additional info:
application: https://rafamonge.shinyapps.io/DataProducts/
github
Session info of my computer (in which it works)
R version 3.2.0 (2015-04-16)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 8 (build 9200)

locale:
[1] LC_COLLATE=Spanish_Spain.1252  LC_CTYPE=Spanish_Spain.1252   
[3] LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C                  
[5] LC_TIME=Spanish_Spain.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

other attached packages:
[1] raster_2.5-2 tmap_1.2     sp_1.2-1     dplyr_0.4.3  shiny_0.12.2

loaded via a namespace (and not attached):
 [1] RColorBrewer_1.1-2 rgdal_1.1-3        packrat_0.4.6-1   
 [4] splines_3.2.0      digest_0.6.8       htmltools_0.2.6   
 [7] R6_2.1.1           XML_3.98-1.3       assertthat_0.1    
[10] grid_3.2.0         spdep_0.5-92       bitops_1.0-6      
[13] e1071_1.6-7        gridBase_0.4-7     LearnBayes_2.15   
[16] httpuv_1.3.3       rgeos_0.3-15       deldir_0.1-9      
[19] lattice_0.20-31    mime_0.4           DBI_0.3.1         
[22] coda_0.18-1        boot_1.3-16        Matrix_1.2-0      
[25] KernSmooth_2.23-14 gridSVG_1.5-0      MASS_7.3-40       
[28] jsonlite_0.9.19    svgPanZoom_0.3.0   classInt_0.1-23   
[31] shinyapps_0.4.1.8  magrittr_1.5       RCurl_1.95-4.7    
[34] RJSONIO_1.3-0      tools_3.2.0        osmar_1.1-7       
[37] parallel_3.2.0     htmlwidgets_0.5    nlme_3.1-120      
[40] xtable_1.8-0       lazyeval_0.1.10    class_7.3-12      
[43] geosphere_1.5-1    Rcpp_0.12.2       


Thanks!

Message has been deleted
Message has been deleted

Gaël

unread,
Jan 11, 2016, 6:21:11 AM1/11/16
to ShinyApps Users

Hi,

I get the same issue with my app. My investigation leeds me to the fact that the Unary Union is available only with an version of GEOS older than 3.3. Then, when I run ma app locally, the package information about rgeos says:

rgeos version: 0.3-15, (SVN revision 515)
 GEOS runtime version: 3.4.2-CAPI-1.8.2 r3921
 Linking to sp version: 1.2-1
 Polygon checking: TRUE 

 So the 3.4.2 version of GEOS is used here and it's OK. But when I check the shinyapps.io logs of my app, the rgeos information says:

2016-01-08T10:27:22.983422+00:00 shinyapps[74690]: rgeos version: 0.3-15, (SVN revision 515)
2016-01-08T10:27:22.983425+00:00 shinyapps[74690]:  GEOS runtime version: 3.2.2-CAPI-1.6.2 
2016-01-08T10:27:22.983426+00:00 shinyapps[74690]:  Linking to sp version: 1.2-1 
2016-01-08T10:27:22.983427+00:00 shinyapps[74690]:  Polygon checking: TRUE 

Indeed, it will be helpful to udpate the GEOS library used by shinyapps.io !

Thanks too

Regards

Gaël


Message has been deleted

Tiernan Martin

unread,
Feb 16, 2016, 12:31:51 PM2/16/16
to ShinyApps Users
Any updates on this issue? Or at least a viable work-around for the near term?

Andy Kipp

unread,
Mar 16, 2016, 1:43:31 PM3/16/16
to Gaël, ShinyApps Users
Hi guys,

We're running libGEOS 3.2.2 on shinyapps.io. I can look at updating this but its unlikely to happen right away, since we're using the version of libGEOS that ships with Ubuntu 12.04, so we will have to compile a newer version from source, or upgrading our system environment to 14.04 or later.

-Andy

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/a0f31e24-3e68-43f7-a523-082725eadfd8%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Gaël

unread,
Mar 30, 2016, 10:46:38 AM3/30/16
to ShinyApps Users, gael.l...@gmail.com
Hi,

Thanks for your answer. Even if this operation will take some time, could you keep me (us) informed when it's done. I allow myself to ask for this because my compagny is waiting for this upgrade to create a professional account and to deploy some of our professionnal app.

Thanks again,

Regards

Gaël

Joshua Spiewak

unread,
Mar 30, 2016, 10:51:55 AM3/30/16
to Gaël, ShinyApps Users
Absolutely. Thanks for being patient!


For more options, visit https://groups.google.com/d/optout.
--
    -- Josh

Joshua Spiewak

unread,
May 18, 2016, 1:41:02 PM5/18/16
to ShinyApps Users, gael.l...@gmail.com
With our base image update last week, libgeos-3.4.2 is now available.
Let me know if you run into any issues.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-users+unsubscribe@googlegroups.com.
To post to this group, send email to shinyapps-users@googlegroups.com.
--
    -- Josh
Reply all
Reply to author
Forward
0 new messages