Builds failing because of downstream Matrix package dependency #354
-
Hi Builds of my {gratia} package on Windows and MacOS are failing because of the incompatibility the Matrix package developers baked into their package late last year. gratia doesn't depend on Matrix, but it does have a dependency on gamm4, which depends on lme4, which depends on Matrix. And this is where the problems start. A representative failed run is shown here: https://github.com/r-universe/gavinsimpson/actions/runs/7477709032/job/20351263645 I fixed this in my own GH Actions workflow by inserting (temporarily I hope) a step that installed the Matrix package into the runner of the workflow. This stopped it from using the version of Matrix that ships with R which is not compatible with lme4. For some reason the tool that finds dependencies in the r-libs action I am using couldn't identify the kind of dependency here and so updated versions of whichever of lme4, gamm4, or Matrix were not getting installed leading to the incompatibility. By forcing the action to install Matrix through the extra-package specification I could force installation during the build/check. Is there a way to tell the r-universe builder to also do this so that builds on Windows and MacOS don't continue to fail? The Matrix developers don't seem to be able to fix this issue (from what I read online around this), as it doesn't seem to be an issue for users; you just reinstall lme4 and Matrix and things get fixed. But this isn't quite so easy on GH Actions and r-universe as I'm not in control of how dependencies are resolved. And I do not want to force dependencies on lme4 and Matrix on my gratia package because it doesn't depend on these packages and nor should it. Any help resolving this would be most appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I think if you add |
Beta Was this translation helpful? Give feedback.
FWIW, the builds on r-universe are working fine, binaries of your package are up to date. It is just a test that fails, but you are free to ignore that if you don't care.