diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2026-01-31 15:52:12 -0300 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2026-01-31 15:52:12 -0300 |
| commit | 2f7b84e480510cd2dc0a7a5ff7bcd2eef1794316 (patch) | |
| tree | 549bd82bc5ec764afbac5e20b5d30d745650ff63 | |
| parent | a22fe1ddc49b81220ab0a0148337586faedd4559 (diff) | |
| download | bookup-2f7b84e480510cd2dc0a7a5ff7bcd2eef1794316.tar.gz bookup-2f7b84e480510cd2dc0a7a5ff7bcd2eef1794316.tar.bz2 | |
Fix: provision: do not install ggplot2 from CRAN anymore
| -rwxr-xr-x | bin/provision | 23 |
1 files 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 |
