jsocolar / flocker

flexible occupancy estimation in R
Other
26 stars 2 forks source link

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

Closed jsocolar closed 10 months ago

jsocolar commented 11 months 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?