-
Notifications
You must be signed in to change notification settings - Fork 418
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
Rectangling function rewrite #1200
Merged
DavisVaughan
merged 17 commits into
tidyverse:main
from
DavisVaughan:feature/rework-unnest-wider
Nov 15, 2021
Merged
Rectangling function rewrite #1200
DavisVaughan
merged 17 commits into
tidyverse:main
from
DavisVaughan:feature/rework-unnest-wider
Nov 15, 2021
Commits on Nov 15, 2021
-
Since we don't have `vec_chop2()` yet r-lib/vctrs#1226
Configuration menu - View commit details
-
Copy full SHA for 5bb8b5a - Browse repository at this point
Copy the full SHA 5bb8b5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 455a64d - Browse repository at this point
Copy the full SHA 455a64dView commit details -
Generalize
unchop_col_info()
intolist_init_empty()
This will be useful for an enhanced `simplify_col()`
Configuration menu - View commit details
-
Copy full SHA for 871915a - Browse repository at this point
Copy the full SHA 871915aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cd377c - Browse repository at this point
Copy the full SHA 6cd377cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4051cd4 - Browse repository at this point
Copy the full SHA 4051cd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c37b67 - Browse repository at this point
Copy the full SHA 1c37b67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66e777c - Browse repository at this point
Copy the full SHA 66e777cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3294bbf - Browse repository at this point
Copy the full SHA 3294bbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for bc7a16a - Browse repository at this point
Copy the full SHA bc7a16aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c766f46 - Browse repository at this point
Copy the full SHA c766f46View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbe1ad2 - Browse repository at this point
Copy the full SHA bbe1ad2View commit details -
Introduce
tidyr_temporary_new_list_of()
Because vctr objects can't currently have `""` names
Configuration menu - View commit details
-
Copy full SHA for 65735a7 - Browse repository at this point
Copy the full SHA 65735a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 817af55 - Browse repository at this point
Copy the full SHA 817af55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e3b4fa - Browse repository at this point
Copy the full SHA 7e3b4faView commit details -
Chop non-lists into lists with
vec_chop()
This uses more explainable vctrs tooling for converting non-primary data types (i.e. non-lists) into lists. This also seems to produce the expected output in more scenarios. Also inlined `tidyr_chop()` into `elt_to_wide()` since that is the only other place it was used. The fact that this removed a helper makes me optimistic that it is the right approach.
Configuration menu - View commit details
-
Copy full SHA for c8c9b3f - Browse repository at this point
Copy the full SHA c8c9b3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf936c0 - Browse repository at this point
Copy the full SHA bf936c0View commit details -
Apply unique name repair on names before applying
names_sep
Applying it before `names_sep` rather than after means that `""` and `NA_character_` names get repaired early on before they are combined with the prefix and `names_sep`, which can make them mistakently look like "valid" names
Configuration menu - View commit details
-
Copy full SHA for e0d0d18 - Browse repository at this point
Copy the full SHA e0d0d18View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.