diff --git a/tests/testthat/_snaps/filter-dm.md b/tests/testthat/_snaps/filter-dm.md index 94ae32c9c..24c21082c 100644 --- a/tests/testthat/_snaps/filter-dm.md +++ b/tests/testthat/_snaps/filter-dm.md @@ -1,107 +1,3 @@ -# dm_filter() deprecations - - Code - dm_filter(dm_for_filter(), tf_1, a > 4) - Condition - Warning: - The `table` argument of `dm_filter()` is deprecated as of dm 1.0.0. - `dm_filter()` now takes named filter expressions, the names correspond to the tables to be filtered. You no longer need to call `dm_apply_filters()` to materialize the filters. - Output - -- Metadata -------------------------------------------------------------------- - Tables: `tf_1`, `tf_2`, `tf_3`, `tf_4`, `tf_5`, `tf_6` - Columns: 20 - Primary keys: 6 - Foreign keys: 5 - -- Filters --------------------------------------------------------------------- - tf_1: a > 4 - Code - dm_filter(dm = dm_for_filter(), tf_1, a > 4) - Condition - Warning: - The `dm` argument of `dm_filter()` is deprecated as of dm 1.0.0. - Please use the `.dm` argument instead. - Warning: - The `table` argument of `dm_filter()` is deprecated as of dm 1.0.0. - `dm_filter()` now takes named filter expressions, the names correspond to the tables to be filtered. You no longer need to call `dm_apply_filters()` to materialize the filters. - Output - -- Metadata -------------------------------------------------------------------- - Tables: `tf_1`, `tf_2`, `tf_3`, `tf_4`, `tf_5`, `tf_6` - Columns: 20 - Primary keys: 6 - Foreign keys: 5 - -- Filters --------------------------------------------------------------------- - tf_1: a > 4 - Code - dm_filter(dm_for_filter(), tf_1, a > 4) %>% dm_apply_filters() - Condition - Warning: - The `table` argument of `dm_filter()` is deprecated as of dm 1.0.0. - `dm_filter()` now takes named filter expressions, the names correspond to the tables to be filtered. You no longer need to call `dm_apply_filters()` to materialize the filters. - Output - -- Metadata -------------------------------------------------------------------- - Tables: `tf_1`, `tf_2`, `tf_3`, `tf_4`, `tf_5`, `tf_6` - Columns: 20 - Primary keys: 6 - Foreign keys: 5 - Code - dm_filter(dm_for_filter(), tf_1 = a > 4) %>% dm_apply_filters() - Condition - Warning: - `dm_apply_filters()` was deprecated in dm 1.0.0. - Calling `dm_apply_filters()` after `dm_filter()` is no longer necessary. - Output - -- Metadata -------------------------------------------------------------------- - Tables: `tf_1`, `tf_2`, `tf_3`, `tf_4`, `tf_5`, `tf_6` - Columns: 20 - Primary keys: 6 - Foreign keys: 5 - Code - dm_filter(dm_for_filter(), tf_1, a > 4) %>% dm_apply_filters_to_tbl(tf_2) - Condition - Warning: - The `table` argument of `dm_filter()` is deprecated as of dm 1.0.0. - `dm_filter()` now takes named filter expressions, the names correspond to the tables to be filtered. You no longer need to call `dm_apply_filters()` to materialize the filters. - Output - # A tibble: 3 x 4 - c d e e1 - - 1 worm 5 G 7 - 2 dog 6 E 5 - 3 cat 7 F 6 - Code - dm_filter(dm_for_filter(), tf_1 = a > 4) %>% dm_apply_filters_to_tbl(tf_2) - Condition - Warning: - `dm_apply_filters_to_tbl()` was deprecated in dm 1.0.0. - Access tables directly after `dm_filter()`. - Output - # A tibble: 3 x 4 - c d e e1 - - 1 worm 5 G 7 - 2 dog 6 E 5 - 3 cat 7 F 6 - Code - dm_filter(dm_for_filter(), tf_1, a > 4) %>% dm_get_filters() - Condition - Warning: - The `table` argument of `dm_filter()` is deprecated as of dm 1.0.0. - `dm_filter()` now takes named filter expressions, the names correspond to the tables to be filtered. You no longer need to call `dm_apply_filters()` to materialize the filters. - Output - # A tibble: 1 x 3 - table filter zoomed - - 1 tf_1 FALSE - Code - dm_filter(dm_for_filter(), tf_1 = a > 4) %>% dm_get_filters() - Condition - Warning: - `dm_get_filters()` was deprecated in dm 1.0.0. - Filter conditions are no longer stored with the dm object. - Output - # A tibble: 0 x 3 - # ... with 3 variables: table , filter , zoomed - # data structure Code @@ -223,9 +119,6 @@ Code dm_for_filter_rev() %>% dm_filter(tf_1 = a < 8 & a > 3) %>% dm_get_tables() %>% map(harmonize_tbl) - Condition - Warning: - Autoincrementing columns not yet supported for DuckDB, these won't be set in the remote database but are preserved in the `dm` Output $tf_6 # A tibble: 2 x 3