-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
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. |
@sangttruong, @bryanhanson, @cbeleites, please, add comments in each issue. |
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 |
I think we need:
|
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 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 "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. |
Suggest moving the conversation about user experience here. |
I'm starting the procedures to rename the functions as this summer, in general, there was an agreement on doing this. |
Related to r-hyperspec/hyperSpec#38
Related r-hyperspec/hyperSpec#38
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
asspc
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.spc.label.wlonly()
→format_label_wl_only()
, etc. #39spc.identify()
→identify_spc()
#40stacked.offsets()
→calculate_offsets()
|calculate_stacked_offsets()
#41trellis.factor.key()
→trellis_factor_key()
#42mark.dendrogram()
→mark_groups_in_dendrogram()
#43markpeak()
→mark_peak()
#44sel.poly()
→plot_and_get_polygon_coordinates()
, etc. #45spc.point.*()
→locate_spc_point_*()
#46fitraster()
→raster_fit()
,makeraster
→raster_make
#47plot*()
→plot_*()
#48as.*()
→as_*()
#49normalize01()
→normalize_01()
#50pooled.cov()
→cov_pooled()
#51The text was updated successfully, but these errors were encountered: