r-lib / actions

GitHub Actions for the R community
Creative Commons Zero v1.0 Universal
963 stars 210 forks source link

Binary incompatibility of the pre-installed Matrix package #832

Closed gaborcsardi closed 5 months ago

gaborcsardi commented 5 months ago

This (#780) is happening again, because for R 4.4.0 PPM has an lme4 package (+possibly others!) that is built against Matrix 1.6-x, and this are not compatible with the pre-installed Matrix 1.7-x.

Possible workarounds:

gaborcsardi commented 5 months ago

I think this should be fixed in PPM eventually.

EDIT: Or actually maybe on CRAN, because they don't have Matrix 1.7-0 available for R 4.4.0. I emailed R-devel: https://stat.ethz.ch/pipermail/r-devel/2024-April/083377.html

gaborcsardi commented 5 months ago

OK, CRAN now has Matrix 1.7-0 in the metadata, and PPM will binaries for it and all the packages that depend on it automatically, I would guess in 1-2 days.

The daily PPM snapshots won't be fixed, though.

I'll keep this issue open until Matrix 1.7-0 is built on PPM.

CorradoLanera commented 5 months ago

Similar issue with {hommel} v1.6

For the moment, I take your suggestion to use-public-rspm: false

gaborcsardi commented 5 months ago

@CorradoLanera That is a different issue I believe:

  Error: 
  ! error in pak subprocess
  Caused by error in `verify_extracted_package(filename, pkg_cache)`:
  ! 
  '/tmp/RtmpjTd5Q2/file14075f9f5350/src/contrib/x86_64-pc-linux-gnu-ubuntu-22.04/4.4/hommel_1.6.tar.gz'
  is not a valid binary, it is missing hommel/Meta/package.rds.
gaborcsardi commented 5 months ago

The Matrix problem that this issue is about should be fixed now. PPM has a 1.7-0 binary for R 4.4 now.

gaborcsardi commented 5 months ago

@CorradoLanera The error in https://github.com/r-lib/actions/issues/832#issuecomment-2090980753 is a different thing, and it is triggered by a change in PPM. It only happens if you set PPM as a repository called CRAN, so a workaround is to call it something else. It will be fixed here: https://github.com/r-lib/pak/issues/623

github-actions[bot] commented 4 months ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue