tidymodels / broom

Convert statistical analysis objects from R into tidy format
https://broom.tidymodels.org
Other
1.46k stars 304 forks source link

dependency install errors on GHA #1201

Closed simonpcouch closed 6 months ago

simonpcouch commented 6 months ago

In most recent GHA runs, seeing:

  Error: 
  ! error in pak subprocess
  Caused by error: 
  ! Could not solve package dependencies:
  * deps::.: Can't install dependency quantreg
  * quantreg: Can't install dependency MatrixModels
  * MatrixModels: Can't install dependency Matrix (>= 1.6-0)
  * Matrix: Needs R >= 4.5
  * Matrix: Needs R >= 4.4.0
  * any::sessioninfo: dependency conflict

Current R-release is 4.4.0, so I'm a bit confused by a Recommended package requiring (greater than?) R-devel.

simonpcouch commented 6 months ago

Okay...

So, quantreg requires MatrixModels, which requires Matrix (>= 1.6-0). On R 4.1, though, there is no appropriate Matrix in the CRAN metadata.

We could work around this in our own GHA, but builds would still fail on CRAN / users would be unable to install on R 4.1.

simonpcouch commented 6 months ago

In #1203:

Okay, we'd at least need to do the same thing for car tidiers to properly resolve this issue.

I think, at this point, broom will need to do a parsnip-style Roll Your Own Package Manager approach.

Rather than deprecating most tidiers in the package, I think we'll need to come up with a Suggests-free approach to supporting these methods.

github-actions[bot] commented 6 months ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.