Opened 4 years ago

Closed 22 months ago

#2248 closed task (fixed)

R 4.0 on Focal

Reported by: darkblueb Owned by: osgeolive@…
Priority: major Milestone: OSGeoLive15.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 4 years ago.
R packages installed upon 'recommended' and 'basic' R4 setup

Download all attachments as: .zip

Change history (11)

comment:1 by darkblueb, 4 years ago

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 by darkblueb, 4 years ago

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.

by darkblueb, 4 years ago

Attachment: focal_cloudR_pass0.png added

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

comment:4 by darkblueb, 3 years ago

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 by darkblueb, 3 years ago

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

that last one could also be used for GEOS 3.9, 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..

Last edited 3 years ago by darkblueb (previous) (diff)

comment:6 by darkblueb, 3 years ago

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 3 years ago by darkblueb (previous) (diff)

comment:7 by kalxas, 3 years ago

Priority: criticalmajor

comment:9 by kalxas, 3 years ago

Milestone: OSGeoLive14.0OSGeoLive15.0

Ticket retargeted after milestone closed

comment:10 by darkblueb, 22 months ago

Resolution: fixed
Status: newclosed

ol15 closed for new base install

Note: See TracTickets for help on using tickets.