New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange output and content after as.data.frame()
coercion
#275
Comments
Looks like control characters from color formatting. My guess is this is because of this: Lines 234 to 238 in 75ae740
Probably the "right" thing to do is to instead return a data frame with a subclass here, like |
Yes, that could make sense. @mjskay would you have time to do that or shall I? |
I miiigght have time this weekend, but most likely not due to various bits of travel. But if you don't get to it before next week I could do it next week. |
Thanks! I forgot to mention that not only the |
as.data.frame()
coercionas.data.frame()
coercion
Yeah, that tracks with my reading of the problem - basically the formatting is being applied to the returned data frame instead of being applied at print time. |
delay num formatting until print(<draws_summary>) is called, closes #275
With posterior 1.4.0, I get strange results when printing an object (e.g., a summary) that I applied
as.data.frame()
to:gives
I don't know if this is actually posterior-related or if it might be related to a recent update in tidyverse / tibble / pillar or anything else. I just encountered it in the context of posterior because I don't use tibbles anywhere else.
The text was updated successfully, but these errors were encountered: