Better checking of list arguments to bind_rows()#3068
Better checking of list arguments to bind_rows()#3068krlmlr merged 6 commits intotidyverse:masterfrom
Conversation
I think it should be: Argument 1 must be named |
|
i.e. lists are treated as data frames so they should have outer names and the inner names of vectors are irrelevant. |
|
To me, in |
|
If there are unused outer names it should probably be a warning. |
|
oh I understand now: "Argument 1 must have names". Argument 1 refers to the list, got it. |
Though the outer names can be used as |
|
I'm not sure, this PR is just about fixing an annoyance just before the upcoming dplyr bugfix release, which may or may not be connected with a segfault only CRAN is seeing. Can we discuss wording of error messages after the release? |
hadley
left a comment
There was a problem hiding this comment.
I think this function would be a bit easier to understand if the first check was to confirm that the input was a vector. But we can do that refactoring later, if needed.
|
Simplified the check. |
|
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 #3024.
Related: humanpred/pknca#48 (comment)