Open
Description
I previously used this package to check that joins in a pipeline do not introduce new rows via duplicates using the following pattern:
df3 <- df %>%
left_join(df2, by="var") %>%
assert(nrow(.) == nrow(df)
Or similarly, other attributes of the data frame at that point in the pipeline by passing the current state of the frame in the pipeline using .
This commit added a check that columns are passed to assert()
, which makes sense per the current documentation but causes my use case to break. So this a request is to allow passing logical checks to predicates that do not operate on columns, or another way to check attributes of the data frame being built at that point in the pipeline.
Metadata
Metadata
Assignees
Labels
No labels