From 30e63c29f24595c1e61369a0ca5451af2bca286b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Grelot?= <frederic.grelot@irstea.fr> Date: Mon, 24 Jan 2022 00:58:38 +0100 Subject: [PATCH] =?UTF-8?q?geau=20version=201.0.11.2=200=20errors=20?= =?UTF-8?q?=E2=9C=94=20|=200=20warnings=20=E2=9C=94=20|=200=20notes=20?= =?UTF-8?q?=E2=9C=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - map_so_ii - appel à terra::plot encapsulé dans un try pour éviter le message suivant - Erreur dans x$.self$finalize() : tentative d'appliquer un objet qui n'est pas une fonction - apparemment selon https://github.com/sneumann/xcms/issues/288 ça serait un truc interne à R --- geau/DESCRIPTION | 2 +- geau/R/map_so_ii.r | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/geau/DESCRIPTION b/geau/DESCRIPTION index 9f86f52..fc19653 100644 --- a/geau/DESCRIPTION +++ b/geau/DESCRIPTION @@ -1,6 +1,6 @@ Package: geau Title: Utilities very useful to share within geau-inondation team -Version: 1.0.11.1 +Version: 1.0.11.2 Authors@R: c( person(given = "Frédéric", diff --git a/geau/R/map_so_ii.r b/geau/R/map_so_ii.r index 57cc003..6ed4265 100644 --- a/geau/R/map_so_ii.r +++ b/geau/R/map_so_ii.r @@ -552,7 +552,7 @@ map_theme_osm = function() { so_ii_osm = terra::rast( system.file("extdata", "so_ii_osm.tif", package = "geau", mustWork = TRUE) ) - terra::plot(so_ii_osm, add = TRUE) + try(terra::plot(so_ii_osm, add = TRUE), silent = TRUE) graphics::mtext( text = "Fond de carte : \u00a9 Contributeurs OpenStreetMap", side = 1, line = -1, adj = 1, cex = .6, font = 3 -- GitLab