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

Rename more functions #38

Open
9 of 13 tasks
GegznaV opened this issue Aug 11, 2021 · 7 comments
Open
9 of 13 tasks

Rename more functions #38

GegznaV opened this issue Aug 11, 2021 · 7 comments

Comments

@GegznaV
Copy link
Member

GegznaV commented Aug 11, 2021

@GegznaV
Copy link
Member Author

GegznaV commented Aug 11, 2021

I opened separate issues for each portion of functions I suggest renaming. All these functions are exported functions. So we should decide if and how to rename them.

@GegznaV
Copy link
Member Author

GegznaV commented Aug 11, 2021

@sangttruong, @bryanhanson, @cbeleites, please, add comments in each issue.

@bryanhanson
Copy link
Contributor

I support the renaming in general, subject to CB fine-tuning the names. I think we need to start thinking about adding something additional to .onAttach warning users that the changes are extensive ("extensive" is just my word for now, we probably need several sentences to give a sense of the sweep of changes).

@GegznaV
Copy link
Member Author

GegznaV commented Aug 11, 2021

I think we need to start thinking about adding something additional to .onAttach warning users that the changes are extensive

I think we need:

  1. a new vignette or several sections in current vignettes on that;
  2. a section in README on that.

@bryanhanson
Copy link
Contributor

A new vignette, dedicated to the changes, would be a good idea. It would be really great if we could create it by reading the deprecated *.R files and having the vignette create itself, e.g. by writing a table of old and new function names. Personally I would want such a thing in printable form, probably pdf. This would be a great kindness to users.

The audience for such a vignette are existing users, but in the face of problems with old scripts I'm not sure their first move would be to look for a vignette; they might go to the README. Nor is it very pleasant to run an old script dozens of times, each time fixing the re-named or deprecated function that is named in the messages. That's why I think having a printable cheat sheet of changes would be nice -- users could work through their scripts using it.

If we create such a vignette, I would put a message in .onAttach saying to check the vignette and telling them how to view it. Something like:

"Existing users of hyperSpec will find that many functions have been renamed in favor of more consistent names. To help you update your workflows, there is a cheat sheet available as a vignette"

If you really want to be nice, we would write a function to read their scripts and point out what needs to be changed.

@bryanhanson
Copy link
Contributor

Suggest moving the conversation about user experience here.

@GegznaV
Copy link
Member Author

GegznaV commented Dec 14, 2021

I'm starting the procedures to rename the functions as this summer, in general, there was an agreement on doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants