-
Notifications
You must be signed in to change notification settings - Fork 8
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
grid = grid() not working properly with faceted plots #193
Comments
Not 100%, but there's a chance this is my fault. The grid argument must be passed explicitly to the helper functions I have modularized. When they are passed via ... it gets evaluated at an undesirable time. |
Thanks, don't stress. It's not a major bug (and may well have been there for ages). But still worth fixing when we get a sec. |
I looked into this as part of #207, but it was trickier to fix than I had time for. The problem is here... Line 396 in e5ac2b6
... since grid gets evaluated during the is.null() check, which in turn ends up (re)assigning the values of the grid argument to a list of atx and aty values (as per grid). So, we're basically dealing with some unhelpful combination of NSE, promises, and argument/function overloading.
I tried various things, including using Maybe someone else wants to take a stab? |
I don't think that there is a "good" workaround which we could apply only in the
|
Specifically, it only seems to be working for the first facet. Tweaked example from the README, where we use
grid = grid()
instead ofgrid = TRUE
.Created on 2024-08-04 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: