-
Notifications
You must be signed in to change notification settings - Fork 56
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
Documentation and general cleanup for #493, #495 #496
Documentation and general cleanup for #493, #495 #496
Conversation
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Thanks for the details comments on I've also now made args(rows_distinct)
#> function (x, columns = tidyselect::everything(), preconditions = NULL,
#> segments = NULL, actions = NULL, step_id = NULL, label = NULL,
#> brief = NULL, active = TRUE) Back to copy-pasting! |
It's really a lot of files! I sometimes regret that choice. |
I think this more or less covers the necessary doc changes w.r.t. (Also - any clue about the error in codecov GHA? It runs fine locally and I can't seem to pinpoint the failing test) |
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.
LGTM!!
That was a huge amount of work but these are super good changes! I watched the codecov workflow run and couldn’t get any info about why the tests fail in that workflow specifically. It’s something that could be looked at later. As for this PR, all approved. Feel free to merge this in at your leisure! |
Thanks! Moving codecov debugging to #498 |
Summary
This will be a series of (mostly) documentation-related changes complementing the two recent PRs:
columns
argument in validation functions #493label
to access current column/segment (and possibly others) #495Below is the (evolving) roadmap for this PR. Please feel free to interject at any point!
1) Chore
vars()
for column selection in docs.vars(a)
becomesa
andvars(a, b)
becomesc(a, b)
.columns
in validation functions: the input should only beenquo()
-ed onceas_vars_fn()
(nowas_c_fn()
)c()
-expr column selection insideserially()
is too eagerserially()
YAML section example doesn't run: "Error: There must be at least onetest_*()
function call inserially()
."col_exists()
allows all kinds of evaluation errors to go through, not just user-specified selection of non-existent columns2) Documentation
columns
paramlabel
paramlabel
paramCopy pastes:
columns
param docs forrows_*()
functions, makingeverything()
the default3) Feature completeness (more of a wishlist)
get_column_text()
for writingcolumns
expr to yamlc(a)
instead ofvars(a)
if user only specifiescolumns = a
columns: c(a)
andcolumns: c(a, b)
4) Finishing touches
News items
label
columns
vars()
incolumns
(?)columns
inall_of()
if it's an external vector (like indplyr::select()
)Additional tests
X) Bigger refactoring tasks that should be handled outside of this PR
columns
as expressionuses_tidyselect()
exported_tidyselect_fns()
has_columns()
currently relies oncolumns = vars(...)
and could benefit from tidyselect (same situation ascol_exists()
, just more lightweight)info_columns()
does not allow tidyselect expressions over column type/values likewhere(is.character)
whentbl
is loaded lazily.Related GitHub Issues and PRs
columns
argument in validation functions #493, Enable glue syntax inlabel
to access current column/segment (and possibly others) #495Checklist
testthat
unit tests totests/testthat
for any new functionality.