Provide tmap as a cartographic library in R
|Reported by:||bakaniko||Owned by:|
|Cc:||Nick Bearman, osgeolive@…|
At FOSS4G 2022 community sprint, Nick suggested to add tmap in the ISO as a cartographic library. So I investigated a bit.
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
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