adw96 / breakaway

Species richness with high diversity
68 stars 18 forks source link

CRAN issues: internals from lme4 #167

Closed adw96 closed 2 years ago

adw96 commented 2 years ago

Currently we use

  if (!is.null(formula)) {
    ses <- data[,deparse(substitute(ses))]
    group_var <- lme4:::barnames(lme4::findbars(lme4:::RHSForm(formula)))
    groups <- data[,group_var]
    full_form <- lme4::subbars(formula)
    sm_form <- update(full_form, paste("~.-",group_var))
    X <- stats::model.matrix(sm_form, data)
    chats <- stats::model.response(stats::model.frame(formula = sm_form, data = data))
  }

in model_betta_random.R. We need a new alternative that doesn't use ::: calls to get back on CRAN. So

need new versions.

Can I please have some support on this in the next week @MariaAVC @svteichman? 🙏

svteichman commented 2 years ago

Addressed in pull requests #170 and #171