[OSGeoLive] #2405: Provide tmap as a cartographic library in R

OSGeoLive trac_osgeolive at osgeo.org
Sat Aug 27 03:22:47 PDT 2022


#2405: Provide tmap as a cartographic library in R
-------------------------+---------------------------
 Reporter:  bakaniko     |      Owner:  osgeolive@…
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  OSGeoLive15.0
Component:  OSGeoLive    |   Keywords:  R
-------------------------+---------------------------
 At FOSS4G 2022 community sprint, Nick suggested to add tmap in the ISO as
 a cartographic library.
 So I investigated a bit.


 running `install.packages("tmap")` show that tmap as some dependencies
 like leaflet and stars that does not install.

 I managed to fix the leaflet dependencies issues with `sudo apt install
 png`.

 For the stars issues, it is more tricky. It does need the lwgeom.
 I managed to install with `sudo apt install r-cran-lwgeom`

 But still go errors:

 ` Error: package ‘sf’ 1.0.6 was found, but >= 1.0.8 is required by
 ‘stars’`

 so it tries to install sf 1.0.8 but it can't install it due to missing
 access to `gdal-config`:

 `configure: error: gdal-config not found or not executable.`

 `ERROR: configuration failed for package ‘sf’

 as suggested in stackoverflow, I tried to install `libgdal-dev` to get
 that command. https://stackoverflow.com/questions/12141422/error-gdal-
 config-not-found-while-installing-r-dependent-packages-whereas-gdal

 It requires 352 MB of additional disk space so I wonder if it worths it.
 Maybe there is some other way to avoid that.

 That might be also a problem with next version
-- 
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2405>
OSGeoLive <https://live.osgeo.org/>
self-contained bootable DVD, USB thumb drive or Virtual Machine based on Lubuntu, that allows you to try a wide variety of open source geospatial software without installing anything.


More information about the osgeolive mailing list