Skip to content
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

Replace ellipsis unpacking with list to rlang::list2() #148

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

mstackhouse
Copy link
Contributor

In #111 we realized that ellipsis unpacking was broken in some contexts. This had to do with how ellipsis unpacking worked when passing in an object that was being injected. rlang::list2(...) should be equivalent to list(...) except in this type of circumstance.

I took a broad approach of grep'ing the directory to find all these lines - so it could use a cross check to see if I got the right cases. I also put a test in here to make sure the capability worked. I didn't test every single circumstance where this might occur. I think this is ok though because we know all prior functionality is passing, but in that test I verified that injecting a value functions in the desired context.

@mstackhouse mstackhouse changed the title Replace ellipsis unpacking with list to rlang::list2 Replace ellipsis unpacking with list to rlang::list2() Nov 7, 2023
@mstackhouse mstackhouse requested review from asbates and removed request for elimillera December 13, 2023 20:41
Copy link
Collaborator

@asbates asbates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

I've tried to run all the old code I had when I was deep into Tplyr and this issue came up. I also ran the M*V app with this branch installed and everything worked smoothly. I can't remember exactly what I was trying to do unfortunately, but given the reprex from the issue is resolved and all the tests pass, I think it's good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants