You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several functions (especially plot-related) that names do not comply with the Tidyverse style. I think plot-related functions shouldn't start with the prefix spc as spc should be reserved for functions that modify @data$spc (cbeleites/hyperSpec#208 (comment)). Otherwise, the prefixes will be confusing. In series of issues, I'll mention the functions and give suggestions on how to rename them.
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.
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).
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.
Activity
GegznaV commentedon 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 commentedon Aug 11, 2021
@sangttruong, @bryanhanson, @cbeleites, please, add comments in each issue.
bryanhanson commentedon Aug 11, 2021
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
.onAttachwarning 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 commentedon Aug 11, 2021
I think we need:
bryanhanson commentedon Aug 11, 2021
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
*.Rfiles 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
.onAttachsaying 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 commentedon Aug 11, 2021
Suggest moving the conversation about user experience here.
Update startup message
GegznaV commentedon Dec 14, 2021
I'm starting the procedures to rename the functions as this summer, in general, there was an agreement on doing this.
Rename functions
Rename