From 2f7b84e480510cd2dc0a7a5ff7bcd2eef1794316 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 31 Jan 2026 15:52:12 -0300 Subject: Fix: provision: do not install ggplot2 from CRAN anymore --- bin/provision | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/bin/provision b/bin/provision index 25816f1..377fb70 100755 --- a/bin/provision +++ b/bin/provision @@ -102,12 +102,29 @@ else $SUDO apt install -y r-cran-pdftools # As of 2024-08-16, this package is not available on Debian bookworm - $SUDO Rscript -e 'install.packages("eulerr")' + #$SUDO Rscript -e 'install.packages("eulerr")' # As of 2024-08-16, ggplot2 from Debian bookworm version is 3.4.1, whereas # some downstreams need functionality from 3.5.0 (specifically, the ability # to use 'theme(legend.position = "inside"' constructs. # - # Therefore we're currently installing a ggplot2 version from CRAN. - $SUDO Rscript -e 'install.packages("ggplot2")' + # The workaround was to install ggplot2 version from CRAN. + # + # This issue was fixed with Debian trixie, so ggplot2 is not needed anymore + # as of 2026-01-31 (it was removed from the test environment using the + # following command: + # + # sudo Rscript -e 'remove.packages("ggplot2")' + # + # In fact, using ggplot2 from CRAN with the other packages from Debian + # leads to this error: + # + # > library(ggplot2) + # > ggplot(mpg, aes(displ, hwy, colour = class)) + geom_point() + # Error in ggplot(mpg, aes(displ, hwy, colour = class)) + geom_point() : + # non-numeric argument to binary operator + # In addition: Warning message: + # Incompatible methods ("Ops.S7_object", "+.gg") for "+" + # + #$SUDO Rscript -e 'install.packages("ggplot2")' fi -- cgit v1.2.3