To clarify the issue, normally if we provide a named vector to the statistics = argument, it not only selects the coefficients from broom::glance that are included in the vector but also labels them according to the names of the vector.
It appears abbafe9 caused this regression, but I don't grasp what's going on well enough to be sure why it has this effect and what will preserve the change you intended to make with that commit while also fixing this new issue. I can confirm the naming works appropriately with 39209b6.
Current version:
fit <- lm(mpg ~ wt + cyl, data = mtcars)
huxtable::huxreg(fit, statistics = c("N" = "nobs"))
To clarify the issue, normally if we provide a named vector to the
statistics =
argument, it not only selects the coefficients frombroom::glance
that are included in the vector but also labels them according to the names of the vector.It appears abbafe9 caused this regression, but I don't grasp what's going on well enough to be sure why it has this effect and what will preserve the change you intended to make with that commit while also fixing this new issue. I can confirm the naming works appropriately with 39209b6.
Current version:
Reverting to 39209b6