-
Notifications
You must be signed in to change notification settings - Fork 34
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
When multiple comma-separated columns are selected in assert_rows, it gives an error when building the violations data.frame #83
Comments
Heads up, pretty soon there are going to a big merge into this repo (from a fork) Thanks for bringing this to my attention! |
I'm having the same error, but with library(assertr)
mtcars |>
assert_rows(col_concat, is_uniq, mpg, cyl, hp)
#> Error in data.frame(verb = verb, redux_fn = name.of.rowredux.fn, predicate = name.of.predicate, : arguments imply differing number of rows: 1, 3, 2 Created on 2022-06-27 by the reprex package (v2.0.1) |
I think I'm having the same error, but with library(assertr)
mtcars |>
assert_rows(col_concat, is_uniq, mpg, cyl, hp)
#> Error in data.frame(verb = verb, redux_fn = name.of.rowredux.fn, predicate = name.of.predicate, : arguments imply differing number of rows: 1, 3, 2 Created on 2022-06-27 by the reprex package (v2.0.1) |
Got to the bottom of this.
I'll update the docs to reflect this! |
Example:
gives
This error resides in the function
make.assertr.assert_rows.error
. Right here:The
column
s need to be collated in some way so that it becomes a vector of length 1, before it is inserted into theerror_df
data.frame.The text was updated successfully, but these errors were encountered: