From fb07c5742c6ea5c192de7a174175c49b419cac40 Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Thu, 16 Apr 2026 14:49:29 +1000 Subject: [PATCH 1/2] Bugfix in icon script --- icons/icons.R | 1 + 1 file changed, 1 insertion(+) diff --git a/icons/icons.R b/icons/icons.R index 36ed8bfa8d..e2a81b0afb 100644 --- a/icons/icons.R +++ b/icons/icons.R @@ -510,6 +510,7 @@ write_icon("scale_colour_continuous", { }) write_icon("scale_colour_viridis_d", { + g <- scale_colour_viridis_d() rectGrob( c(0.1, 0.3, 0.5, 0.7, 0.9), width = 0.21, From 985c736d2373f5f28ff97e553969072a9eabb27e Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Thu, 16 Apr 2026 14:53:00 +1000 Subject: [PATCH 2/2] Use pal_brewer() instead of brewer.pal() --- DESCRIPTION | 1 - icons/icons.R | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 91bc6db965..547578c6bd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -65,7 +65,6 @@ Suggests: quantreg, quarto, ragg (>= 1.2.6), - RColorBrewer, roxygen2, rpart, sf (>= 0.7-3), diff --git a/icons/icons.R b/icons/icons.R index e2a81b0afb..bb665ba0d6 100644 --- a/icons/icons.R +++ b/icons/icons.R @@ -488,7 +488,7 @@ write_icon("scale_colour_brewer", { rectGrob( c(0.1, 0.3, 0.5, 0.7, 0.9), width = 0.21, - gp = gpar(fill = RColorBrewer::brewer.pal(5, "PuOr"), col = NA) + gp = gpar(fill = scales::pal_brewer(palette = "PuOr")(5), col = NA) ) })