Skip to content
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

Function Naiming #29

Closed
gowerc opened this issue Mar 26, 2019 · 2 comments
Closed

Function Naiming #29

gowerc opened this issue Mar 26, 2019 · 2 comments

Comments

@gowerc
Copy link
Owner

gowerc commented Mar 26, 2019

@kieranjmartin ,

I don't really have a solution but I'm still not happy with the naming of our external facing functions. Currently there is:

diffdf_issuerows
diffdf_has_issue

I think the diffdf_ prefix is a bit clunky and long. The original idea was to make functions easy to search for on the auto complete mirroring what was done with str_ in stringr and fct_ in forcats. However I realise now all those prefixed functions all relate to specific operations (i.e. all functions related to manipulating strings however there are functions in each of those packages that don't have the prefix as they have other purposes i.e. regex, boundary & fixed

I'm wondering if we should just drop the diffdf prefix (or reduce to just df_?) or find another name ?

@kieranjmartin
Copy link
Collaborator

it's a shame R6 isn't more accepted, because the obvious thing to do is just make these methods of an rcompare object.

I don't think there's a great solution. Moving to has_issue and get_issue_rows is fine, but loses the connection to diffdf. Maybe it's ok

@gowerc
Copy link
Owner Author

gowerc commented Jan 5, 2021

One is being depreciated, the other is being renamed

@gowerc gowerc closed this as completed Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants