jsocolar / flocker

flexible occupancy estimation in R
Other
30 stars 3 forks source link

formulas don't work with brmsformula objects produced by `bf()` #70

Closed jsocolar closed 1 year ago

jsocolar commented 1 year ago

We fail in a few places, including:

More importantly, inside flock_ we have things like

if (!is.null(f_occ)) {
    f_occ_txt <- paste0(deparse(f_occ), collapse = "")
    f_occ_use <- stats::as.formula(paste0("occ ", f_occ_txt))
  }

Can we come up with a slick fix?