-
-
Notifications
You must be signed in to change notification settings - Fork 206
refactor: Replace _impl aliases with explicit wrapper functions in R/topology.R
#2398
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
refactor: Replace _impl aliases with explicit wrapper functions in R/topology.R
#2398
Conversation
…logy.R Co-authored-by: krlmlr <[email protected]>
_impl aliases with explicit wrapper functions in R/topology.R
_impl aliases with explicit wrapper functions in R/topology.R_impl aliases with explicit wrapper functions in R/topology.R
|
@copilot: Apply the pattern from the last commit across all relevant arguments. IMPORTANT: Do not use other patterns. Test and report if successful. |
…unctions Co-authored-by: krlmlr <[email protected]>
Head branch was pushed to by a user without write access
Applied the |
…`R/topology.R` (#2398) Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: krlmlr <[email protected]> Co-authored-by: Kirill Müller <[email protected]> Co-authored-by: Kirill Müller <[email protected]>
Replace
_implaliases inR/topology.Rwith explicit wrapper functionsSummary:
Successfully replaced all direct
_implfunction aliases with explicit wrapper functions that properly preserve the missing state of optional parameters.Changes completed:
if (missing(arg)) missing_arg() else argpattern to all color-related parametersgraph.isomorphic.bliss- colors1, colors2graph.isomorphic.vf2- vertex.color1, vertex.color2, edge.color1, edge.color2graph.subisomorphic.vf2- vertex.color1, vertex.color2, edge.color1, edge.color2graph.count.isomorphisms.vf2- vertex.color1, vertex.color2, edge.color1, edge.color2graph.count.subisomorphisms.vf2- vertex.color1, vertex.color2, edge.color1, edge.color2canonical_permutation- colorscount_automorphisms- colors (already done in previous commit)automorphism_group- colorsPattern applied:
The pattern uses
rlang::missing_arg()to preserve the missing state of optional parameters. When a wrapper function receives an optional parameter that wasn't provided by the caller, it forwards a missing argument marker to the_implfunction, allowing the_implfunction'sis_missing()check to work correctly.Example:
Original prompt
_implaliases inR/topology.R#2366💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.