flexsurv-dev icon indicating copy to clipboard operation
flexsurv-dev copied to clipboard

Relative Survival model no longer compatible with R versions < 4.2

Open mikesweeting opened this issue 1 year ago • 1 comments
trafficstars

I'm no longer able to run relative survival models on R versions < 4.2. Running on version 4.1 I get the following.

    bc$bh <- rep(0.01, nrow(bc))
    flexsurvreg(Surv(recyrs, censrec) ~ group, data=bc, dist="weibullPH", bhazard=bh)

Error in simplify2array(res, except = NULL) : unused argument (except = NULL)

Is there a way of making the new dev version backward compatible?

mikesweeting avatar Jan 23 '24 16:01 mikesweeting

Thanks for spotting, I think https://github.com/chjackson/flexsurv/commit/7978e4cfa5bdbef05616385356fb5df9f4bc2c66 fixes this?

chjackson avatar Jan 23 '24 19:01 chjackson