Skip to content

Some r-packages incompatible with the version of R #4

Open
Cristian-Ruiz opened this issue Jul 3, 2025 · 0 comments
Open

Some r-packages incompatible with the version of R #4

Cristian-Ruiz opened this issue Jul 3, 2025 · 0 comments

Comments

@Cristian-Ruiz
Copy link
Collaborator

For spack version v0.22.3, some R packages are incompatible with the default version of R. It is the case of for example ggplot2

==> Installing r-ggplot2-3.4.2-4al6l3kudjoi5n4jhccl5l6smtfwssob [59/59]
==> No binary for r-ggplot2-3.4.2-4al6l3kudjoi5n4jhccl5l6smtfwssob found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/70/70230aa70a2c6f844fc41dd93e5f62af6859dfed390026ae58f223637e5283ca.tar.gz
==> No patches needed for r-ggplot2
==> r-ggplot2: Executing phase: 'install'
==> Error: ProcessError: Command exited with status 1:
    '/tmp/53552967/spack_ci/spack/opt/spack/linux-rhel9-zen2/gcc-12.3.0/r-4.4.0-2nv2pnf6wweh2fxxfsrrsluecbywzhsr/bin/R' '--vanilla' 'CMD' 'INSTALL' '--library=/tmp/53552967/spack_ci/spack/opt/spack/linux-rhel9-zen2/gcc-12.3.0/r-ggplot2-3.4.2-4al6l3kudjoi5n4jhccl5l6smtfwssob/rlib/R/library' '/tmp/53552967/cruiz1/spack-stage/spack-stage-r-ggplot2-3.4.2-4al6l3kudjoi5n4jhccl5l6smtfwssob/spack-src'

2 errors found in build log:
     5     ** using staged installation
     6     ** R
     7     ** data
     8     *** moving datasets to lazyload DB
     9     ** inst
     10    ** byte-compile and prepare package for lazy loading
  >> 11    Error in .make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) :
     12      invalid non-character version specification 'x' (type: double)
  >> 13    Error: unable to load R code in package 'ggplot2'
     14    Execution halted
     15    ERROR: lazy loading failed for package 'ggplot2'
     16    * removing '/tmp/53552967/spack_ci/spack/opt/spack/linux-rhel9-zen2/gcc-12.3.0/r-ggplot2-3.4.2-4al6l3kudjoi5n4jhccl5l6smtfwssob/rlib/R/library/ggplot2'

The impact of this is limited, given that R packages are provided by r-light container but we can need them as a dependency for other packages. It is the case of trinity package.

The explanation of the incompatibility is here:

https://github.com/tidyverse/ggplot2/issues/6152

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant