Opened 10 months ago

Last modified 7 weeks ago

#2248 new task

R 4.0 on Focal

Reported by: darkblueb Owned by: osgeolive@…
Priority: major Milestone: OSGeoLive14.0
Component: OSGeoLive Keywords: R
Cc:

Description

OSGeoLive 2020 includes R v4, not the default 3x. details here

Attachments (1)

focal_cloudR_pass0.png (206.2 KB) - added by darkblueb 10 months ago.
R packages installed upon 'recommended' and 'basic' R4 setup

Download all attachments as: .zip

Change history (9)

comment:1 Changed 10 months ago by darkblueb

original Email content:


On Fri, Jul 3, 2020 at 8:38 AM Brian M Hamlin <maplabs@light42.com> wrote:

    Hi Carl - I am reading this post [0] for the first time.. Are there
    sources to the Rocker container build for geo that we may look at, here
    at OSGeoLive ?   The purpose is to coordinate, for the benefit of users,
    versions and components under Ubuntu Focal.

    [0] http://dirk.eddelbuettel.com/blog/2020/07/03/#028_rocker_rspm

       OSGeoLive 2020 repo to date:

    https://git.osgeo.org/gitea/darkblueb/osgeolive14

       base ISO

    http://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04-desktop-amd64.iso

       best regards from Berkeley, CA    --Brian

comment:2 Changed 10 months ago by darkblueb

Carl B. replies:

we've just added the RSPM binaries to the (Ubuntu 20.04-based) rocker-versioned stack, (4.0.x), should appear on the rocker/geospatial images (tags: latest, 4.0.0, 4.0.1 and 4.0.2) soon. 
It's already been there on the rocker/geospatial:4.0.0-ubuntu18.04 image too.

Changed 10 months ago by darkblueb

Attachment: focal_cloudR_pass0.png added

R packages installed upon 'recommended' and 'basic' R4 setup

comment:4 Changed 7 months ago by darkblueb

R Studio Package Manager docs page here

Focal setup script Install System Prerequisites for the Repo’s Packages Ubuntu Focal

note that a configuration of the R environment is repos

R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"

> options('repos')
$repos
                         CRAN 
"https://cloud.r-project.org" 

comment:5 Changed 7 months ago by darkblueb

Rocker Discussion - 2020 here

The R Spatial Docker lead Carl reports that they have a Docker image updated to UbuntuGIS Focal --

base --> (rocker/geospatial:latest) use the Ubuntu-focal libs, yielding Universe GEOS 3.8.0, GDAL 3.0.4, PROJ 6.3.1

secondly, they have a named version that pulls from UbuntuGIS specifically -> (rocker/geospatial:ubuntugis) yielding UbuntuGIS GEOS 3.8.1, GDAL 3.1.3, PROJ 7.1.1

third, they would like to build a setup that compiles the chain from source, but that is not ready now .. I suggested they start with GDAL 3.2x GEOS 3.8x PROJ 7x

over time, that last one could also be used for GEOS 3.9 dev, and I know the GEOS team wants that

from a Marketing point of view, I included "we/OSGeo dot org are interested to work well with the greater R community. and be appropriately visible to your users", so a logo added somewhere, a README entry .. things like that..

Version 0, edited 7 months ago by darkblueb (next)

comment:6 Changed 5 months ago by darkblueb

build ol14b187

## needs R 4x and sf 0.8x

jupyter R version 3.6.3 (2020-02-29) -- "Holding the Windsock"

Package: sf
Version: 0.7-7
Title: Simple Features for R
ERROR while rich displaying an object: Error in loadNamespace(name): 
  there is no package called ‘geojsonio’

Traceback:
1. FUN(X[[i]], ...)
2. tryCatch(withCallingHandlers({
 .     if (!mime %in% names(repr::mime2repr)) 
 .         stop("No repr_* for mimetype ", mime, " in repr::mime2repr")
 .     rpr <- repr::mime2repr[[mime]](obj)
 .     if (is.null(rpr)) 
 .         return(NULL)
 .     prepare_content(is.raw(rpr), rpr)
 . }, error = error_handler), error = outer_handler)
3. tryCatchList(expr, classes, parentenv, handlers)
4. tryCatchOne(expr, names, parentenv, handlers[[1L]])
5. doTryCatch(return(expr), name, parentenv, handler)
6. withCallingHandlers({
 .     if (!mime %in% names(repr::mime2repr)) 
 .         stop("No repr_* for mimetype ", mime, " in repr::mime2repr")
 .     rpr <- repr::mime2repr[[mime]](obj)
 .     if (is.null(rpr)) 
 .         return(NULL)
 .     prepare_content(is.raw(rpr), rpr)
 . }, error = error_handler)
7. repr::mime2repr[[mime]](obj)
8. repr_geojson.sf(obj)
9. repr_geojson(geojsonio::geojson_list(obj), ...)
10. geojsonio::geojson_list
11. getExportedValue(pkg, name)
12. asNamespace(ns)
13. getNamespace(ns)
14. loadNamespace(name)
15. withRestarts(stop(cond), retry_loadNamespace = function() NULL)
16. withOneRestart(expr, restarts[[1L]])
17. doWithOneRestart(return(expr), restart)
Last edited 5 months ago by darkblueb (previous) (diff)

comment:7 Changed 3 months ago by kalxas

Priority: criticalmajor
Note: See TracTickets for help on using tickets.