dwww Home | Show directory contents | Find package

# colwise filter() give meaningful errors

    Code
      (expect_error(filter_if(mtcars, is_character, all_vars(. > 0))))
    Output
      <error/rlang_error>
      Error in `filter_if()`:
      ! `.predicate` must match at least one column.
    Code
      (expect_error(filter_all(mtcars, list(~ . > 0))))
    Output
      <error/rlang_error>
      Error in `filter_all()`:
      ! `.vars_predicate` must be a function or a call to `all_vars()` or `any_vars()`, not a list.

Generated by dwww version 1.15 on Fri May 24 05:40:31 CEST 2024.