Closed ggrothendieck closed 4 years ago
The Call: line in the output shows .f instead of lm.
.f
lm
> fit_with(BOD, lm, list(demand ~ .)) [[1]] Call: .f(formula = demand ~ ., data = data) Coefficients: (Intercept) Time 8.521 1.721
Also this works but if we omit the expr and just have family = gaussian a ton of junk gets printed out. Is it really necessary to use expr here?
expr
family = gaussian
library(rlang) fit_with(BOD, glm, list(demand ~ .), family = expr(gaussian))
This is due to the way that lm() inlines it's calling context. I don't think there's an easy way to fix this (and this package is in a holding pattern).
lm()
The Call: line in the output shows
.f
instead oflm
.Also this works but if we omit the
expr
and just havefamily = gaussian
a ton of junk gets printed out. Is it really necessary to useexpr
here?