-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix ordering in plyr compats... #3327
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
Conversation
It seems this test fails: ggplot2/tests/testthat/test-layer.r Lines 59 to 64 in 291cd7e
Error:
This ordering was tweaked in #3013, so I guess you just need to revert this. https://github.com/tidyverse/ggplot2/pull/3013/files#diff-12165842aeed0c5cb8c55e833132b58c |
R/compat-plyr.R
Outdated
@@ -310,6 +314,7 @@ rbind_dfs <- function(dfs) { | |||
attributes(out) <- list(class = "data.frame", names = names(out), row.names = .set_row_names(total)) | |||
out | |||
} | |||
date_origin <- Sys.Date() - unclass(Sys.Date()) |
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.
Is this the kind of global assignment that should be moved to .onLoad()
?
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.
Oh, yeah. Good catch 🙂
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Fixes #3313 and #3315
This fixes the differences in ordering between plyr and the replacement functions. Some notes
ddply()
is based on a pretty weird heuristic but I think I've nailed itjoin_keys()
is the result of differences inrbind_dfs()
andplyr::rbind.fill()
. I honestly think the current ggplot2 approach is more correct, but I've made Date handling even with plyr to unbreak revdeps... If that fixes everything we should leave it at that instead of pursuing other parity with other weird vector formatsI probably don't have a head for more work this week, so bear with me if there are any problems with the PR