problem installing package tmap in R Studio Cloud

I am unable to install the package 'tmap' in an R Studio Cloud project. I was able to install 'tmap' just fine on my local R Studio Install. The first breakdown in the 'tmap' installation seems to be the dependency 'lwgeom.' I tried to install this package independently and from GitHub. This is the error log from trying to install "lwgeom" in my R Studio Cloud project:

Downloading GitHub repo r-spatial/lwgeom@master
✓ checking for file ‘/tmp/RtmpgI5hq8/remotes11125fdb6b5/r-spatial-lwgeom-0ac3113/DESCRIPTION’ ...
─ preparing ‘lwgeom’:
✓ checking DESCRIPTION meta-information ...
─ cleaning src
─ running ‘cleanup’
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘lwgeom_0.2-5.tar.gz’

Installing package into ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)

  • installing source package ‘lwgeom’ ...
    ** 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 ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/lwgeom’
    Error: Failed to install 'lwgeom' from GitHub:
    (converted from warning) installation of package ‘/tmp/RtmpgI5hq8/file11161ed3066/lwgeom_0.2-5.tar.gz’ had non-zero exit status

Kind Regards,

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.