#2367 closed task (fixed)

Lightweight R-spatial bundle

Reported by: bakaniko Owned by: osgeolive@…
Priority: critical Milestone: OSGeoLive15.0
Component: OSGeoLive Keywords: R
Cc: osgeolive@…

Description

Trying to install the sf R package without the whole tidyverse metapackage.

From blank ubuntu budgie 22.04, needs to be tested during build

# Cpp compilation dependencies
sudo apt install make g++

# geospatial dependecies (should be already there)
sudo apt install libgdal-dev lib-proj-dev lib-geos-dev libudunits2-dev

# R installation
sudo apt install --no-install-recommends r-base # after following CRAN steps see https://cran.r-project.org/

# special dependecies used by sf
sudo apt install --no-install-recommends gfortran r-cran-classint r-cran-dplyr

# install sf for geodata handlingand ggplot2 for mapping
sudo apt install --no-install-recommends r-cran-sf r-cran-ggplot2

package size indications (from apt command) :

  • r-base: 76,2 Mo
  • g++: 29,5 Mo
  • gfortran: 34,6 Mo
  • r-cran-sf :23 Mo
  • r-cran-classint : 2 Mo
  • r-cran-dplyr : 14,1 Mo

Change history (7)

comment:1 by bakaniko, 22 months ago

Maybe we will need to install the spData packages for the notebook:

https://packages.ubuntu.com/en/jammy/r-cran-spdata

Package Size: 3,603.2 kB

Installed Size : 6,537.0 kB We only use the SIDS dataset for the notebook: https://github.com/OSGeo/OSGeoLive/blob/master/app-data/jupyter/R_spatial_introduction.ipynb

Maybe we can use another dataset from the ISO

comment:2 by kalxas, 22 months ago

Cc: osgeolive@… added
Priority: normalcritical

comment:3 by kalxas, 22 months ago

Thank you Nicolas for the changes proposed:

https://github.com/OSGeo/OSGeoLive/commit/af27729707665ede2eda78101a598fd3c050931a

Can you please test the latest nightly iso and confirm the setup is ok?

comment:4 by enockseth, 22 months ago

I tested the latest nightly iso and r-cran-spdata is missing from the packages, it has been commented in the install_R.sh.

Works fine new iso build for me https://github.com/OSGeo/OSGeoLive/pull/327 if it helps

comment:5 by kalxas, 22 months ago

Should be fixed now, can you please check build 110?

comment:6 by bakaniko, 22 months ago

Hi, I checked with build 115 and the notebook run just fine.

comment:7 by kalxas, 21 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.