Skip to content
Back to formatted view

Raw Message

Message-ID: <CA+vqiLG5sDnH3aFG796oSAPwTObpwOWy3ELWnZEWe2f+dXMfiw@mail.gmail.com>
Date: 2020-06-03T17:21:58Z
From: Ista Zahn
Subject: Package lwgeom (0.2-4) fails to install on Shinyapps.io with an "upgrade GEOS to 3.6.0 or later" error
In-Reply-To: <CABvzdCVRrRReyRBDT5GMsh3UB2JXsM94RS0jzHA9JKpiQg_76w@mail.gmail.com>

The documentation at
https://docs.rstudio.com/shinyapps.io/getting-started.html#deploying-applications
will help you figure it out. From a quick glance it seems you can
either downgrade your local version of lwgeom or work to get the
system dependencies installed as instructed at
https://docs.rstudio.com/shinyapps.io/getting-started.html#system-packages

Best,
Ista

On Wed, Jun 3, 2020 at 12:00 PM El Mechry El Koudouss
<eelkoudouss at fordham.edu> wrote:
>
> Dear all,
> I am building a Shiny app that works fine on my laptop (Windows 10).
> However, it fails to deploy on Shinyapps.io because the package lwgeom
> (0.2-4) fails to install on Shinyapps.io. I have the sf  package installed
> and loaded to the library on my laptop and it links to GEOS 3.8.0. I also
> have the  lwgeom package installed and loaded to the library in my laptop
> and it also links to GOES 3.8.0. Yes the error I get is:
> error: upgrade GEOS to 3.6.0 or later
> ERROR: configuration failed for package ?lwgeom?
> The full message I get up on trying to deploy my app is pasted below. For
> more information, I am using the following packages and the following shiny
> functions. I am hoping someone here can point me in the right direction.
> Thanks.
>
> library(shiny)
> library(shinythemes)
> library(plotly)
> library(tidyverse)
> library(sf)
> library(leaflet)
> library(tmap)
> library(lubridate)
> renderLeaflet()
> tm_shape()
> tm_polygons()
> tmap_leaflet()
>
> Full error message is below:
> Building R package: lwgeom (0.2-4)
> /mnt/packages/build /mnt
> * installing to library ?/opt/R/4.0.0/lib/R/library?
> * installing *source* package ?lwgeom? ...
> ** package ?lwgeom? successfully unpacked and MD5 sums checked
> ** using staged installation
> configure: CC: gcc
> configure: CXX: g++ -std=gnu++11
> configure: pkg-config proj exists, will use it
> configure: PROJ: 4.9.2
> checking for pj_init_plus in -lproj... yes
> checking PROJ: epsg found and readable... yes
> configure: POSTGIS_PROJ_VERSION: 49
> checking for geos-config... /usr/bin/geos-config
> checking geos-config usability... yes
> configure: GEOS: 3.5.1
> checking GEOS version >= 3.6.0... no
> configure: error: upgrade GEOS to 3.6.0 or later
> ERROR: configuration failed for package ?lwgeom?
> * removing ?/opt/R/4.0.0/lib/R/library/lwgeom?
> ################################# End Task Log
> #################################
> Error: Unhandled Exception: Child Task 741259659 failed: Error building
> image: Error building lwgeom (0.2-4). Build exited with non-zero status: 1
> Execution halted
>
> --
> El Mechry, El Koudouss (Meshry)
> Graduate Research Assistant
> Center for International Policy Studies
> Fordham University
> Department of Economics
> Website: www.meshry.com
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo