-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: Reexport non-deprecated dplyr functions #163
Conversation
@DavisVaughan: Can you please take a look? Anything else we want to reexport, any deprecated functions I've included by accident? |
Please review only the first comment, I'll need to add reexport statements once we have agreed on the set of reexports. |
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.
Here is my list of what I think we can re-export reasonably (and I do think we should target the exact package they came from, not dplyr in all cases). The idea is to try and support most interactive usage of dplyr, and to remove anything superseded, deprecated, defunct, etc, which could make it harder on dplyr in the future if we exported them here. I think for programmatic tools, users can pull from rlang or dplyr directly as needed.
This list is just based on the "new" exports that are in this PR, but you could do a once over of all the other existing exports and try and apply these principles too if you wanted to.
From rlang:
.data
From tibble:
add_row
as_tibble
tribble
From dplyr:
between
bind_cols
bind_rows
case_match
coalesce
consecutive_id
cumall
cumany
cume_dist
cummean
cur_column
cur_group
cur_group_id
cur_group_rows
dense_rank
group_cols
group_indices
group_nest
group_split
group_trim
groups
if_else
min_rank
n_groups
na_if
near
ntile
order_by
percent_rank
pick
top_n
with_order
From tidyselect:
all_of
any_of
contains
everything
last_col
matches
num_range
one_of
starts_with
where
Remove (mostly superseded or deprecated):
add_rownames
all_vars
any_vars
arrange_all
arrange_at
arrange_if
as_data_frame
as_label
(we'd like to remove from dplyr, comes from rlang)check_dbplyr
(should not be relevant)combine
common_by
(programmatic tool, pull from dplyr as needed)copy_to
(should not be relevant)cur_data
cur_data_all
current_vars
distinct_all
distinct_at
distinct_if
distinct_prepare
(programmatic tool)ensym
(we'd like to remove from dplyr, comes from rlang)ensyms
(we'd like to remove from dplyr, comes from rlang)expr
(we'd like to remove from dplyr, comes from rlang)enquo
(we'd like to remove from dplyr, comes from rlang)enquos
(we'd like to remove from dplyr, comes from rlang)filter_all
filter_at
filter_if
group_by_all
group_by_at
group_by_if
group_by_drop_default
(programmatic tool)group_by_prepare
(programmatic tool)grouped_df
(programmatic tool)ident
(sql)is.tbl
(sql)last_dplyr_warnings
(probably not relevant? not sure, but kind of experimental)lst
(trying to remove from dplyr)make_tbl
(trying to remove from dplyr)mutate_at
mutate_if
mutate_all
(this is currently exported but id remove it)new_grouped_df
(programmatic tool)new_rowwise_df
(programmatic tool)progress_estimated
quo
quo_name
quos
recode
recode_factor
show_query
- everything
sql_*
- everything
src_*
summaris/ze_if
summaris/ze_all
summaris/ze_all
sym
syms
tbl
tbl_df
tbl_nongroup_vars
tbl_ptype
top_frac
transmute_all
transmute_at
transmute_if
type_sum
validate_grouped_df
validate_rowwise_df
wrap_dbplyr_obj
Thanks, Davis, for the extensive review. I went through the existing reexports and identified the following obvious candidates for removal:
The following are experimental, not sure:
In addition, there is a slew of functions related to grouping. At this stage, duckplyr does not support
|
Removing those "obvious candidates" and anything related to For |
export(across) | ||
export(add_count) | ||
export(add_row) | ||
export(add_tally) | ||
export(all_equal) |
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.
all_equal
deprecated
#' @importFrom dplyr auto_copy | ||
#' @importFrom dplyr do | ||
#' @importFrom dplyr dplyr_col_modify |
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.
Do you need all these here for testing?
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.
Yes, for dplyr's tests converted to duckplyr.
Closes #144.