-
Notifications
You must be signed in to change notification settings - Fork 57
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
Implement expand #225
Implement expand #225
Conversation
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.
Looks good! Do you want to do complete()
while you're in here?
R/step-subset.R
Outdated
if (is.null(x$allow_cartesian)) { | ||
out$allow.cartesian <- TRUE | ||
} else { | ||
out$allow.cartesian <- parent$allow_cartesian | ||
} |
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.
if (is.null(x$allow_cartesian)) { | |
out$allow.cartesian <- TRUE | |
} else { | |
out$allow.cartesian <- parent$allow_cartesian | |
} | |
out$allow.cartesian <- parent$allow_cartesian %||% TRUE |
?
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.
I ended up adding an explicit allow_cartesian = TRUE
to step_subset_on()
and it made this part much more straightforward
Yep, sounds good to me. I'll leave a comment when it's all ready. |
All set for review |
Perfect, thanks! |
Implements
expand()
for usage on lazy data.tables.A couple other small adjustments:
slice_min_max()
helper that was causing a note fromdevtools::check()
.