-
Notifications
You must be signed in to change notification settings - Fork 81
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
restore all the classes on [.describe #130
base: master
Are you sure you want to change the base?
Conversation
@@ -528,7 +528,7 @@ print.describe.single <- | |||
object <- '['(unclass(object),i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps object <- NextMethod()
?
For reference, here is how
in relation with the |
Unfortunately I haven't been able to test this thoroughly as I was not able to build |
We've now merged extra checking in library(dplyr, warn.conflicts = FALSE)
neuropsychology::personality %>%
select(where(is.numeric)) %>%
psych::describe() %>%
transmute(a = 1)
#> Error: Can't reconstruct data frame.
#> x The `[` method for class <psych/describe/data.frame> must return a data frame.
#> ℹ It returned a <describe>. Created on 2020-05-20 by the reprex package (v0.3.0) |
Thanks working on this. I would need a formal pull request and testing before I can proceed. Sorry I don't have time soon to work on this myself. |
I believe this caused the package
neuropsychology
to fail against dplyr 1.0.0 because a data frame with additional classdescribe
is[
and this method only keeps "describe" as the class.related to tidyverse/dplyr#5240