ropensci / ruODK

ruODK: An R Client for the ODK Central API
https://docs.ropensci.org/ruODK/
GNU General Public License v3.0
42 stars 13 forks source link

Use R 4.0 in binderhub #83

Closed florianm closed 4 years ago

florianm commented 4 years ago

Problem

The hosted version on Binderhub fails to install ruODK due to an issue with XML breaking the ruODK dependency rlist.

Reproducible example

The binder button fails to launch.

Solution

Binder allows to specify the R version in runtime.txt but requires the specifed R version to be hosted on MRAN. MRAN currently is up to R 3.5.3.

Once MRAN releases R 4.0 or higher, we can pin that version in runtime.txt in urODK, which should then install and start correctly again.

Alternatively, if we manage to install the XML package on R oldrel (3.*), we could possibly port that fix to the binder project.

florianm commented 4 years ago

Alternative: Build own image on top of rocker/spatial with ruODK as GHA, push to dockerhub, use that image for binder https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html

florianm commented 4 years ago

Fixed through https://github.com/dbca-wa/urODK/commit/4fd956b7e2f525b8641a47cae87590a84c110600 Added Dockerfile to ruODK based on rocker/geospatial:4.0.1 providing RStudio Server with ruODK.