chore: Replace _impl aliases in R/flow.R#2379
Conversation
Co-authored-by: krlmlr <1741643+krlmlr@users.noreply.github.com>
|
@maelle: It's interesting how the snapshots change here. What can we do about it? Ideally, the error message would mention the top-level function. |
|
@copilot: The snapshot changes. How do other packages like dplyr ensure that error messages by |
… messages Co-authored-by: krlmlr <1741643+krlmlr@users.noreply.github.com>
I've fixed the error messages by wrapping each The fix is in commit 6d54ec1. |
_impl aliases in R/flow.R
…in error messages" This reverts commit 6d54ec1.
_impl aliases in R/flow.R_impl aliases in R/flow.R
|
Copilot's idea was ... not even wrong. I would have expected |
|
Oh, this is us calling |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: krlmlr <1741643+krlmlr@users.noreply.github.com> Co-authored-by: Kirill Müller <krlmlr@users.noreply.github.com> Co-authored-by: Kirill Müller <kirill@cynkra.com>
Replace
_implaliases inR/flow.RThis PR replaces direct
_implfunction aliases with explicit wrapper functions that forward arguments explicitly. Error handling has been added to ensure error messages display the top-level function names instead of internal_implfunction names.Changes Made
Replaced the following direct aliases with explicit wrapper functions:
st_cuts <- all_st_cuts_implst_min_cuts <- all_st_mincuts_implmin_st_separators <- all_minimal_st_separators_implmax_flow <- maxflow_implis_separator <- is_separator_implis_min_separator <- is_minimal_separator_implmin_separators <- minimum_size_separators_implEach wrapper function:
arg = argnotationtryCatch()andrlang::abort()to preserve the top-level function name in error messagesError in st_cuts()instead ofError in all_st_cuts_impl()Testing
Fixes #2347
Original prompt
_implaliases inR/flow.R#2347💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.