-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feature/29 convert wl_convert_units()
to generic
#30
Conversation
wl(x) <- wl_new | ||
|
||
x@label$.wavelength <- | ||
switch(.wl_fix_unit_name(to), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a separate function that is based on this switch
sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be addressed in a separate PR. See:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, if I understand this function I see 2 items for your consideration:
- This line
#' @param x Data for conversion.
would be clearer if it read#' @param x Data to be converted. Either a hyperSpec object or a numeric or integer vector.
- This UT
test_that("wl_convert_units.hyperSpec works", {
actually tests both...units.hyperSpec
and...units.default
You may wish to separate them.
I leave it up to you to decide if these items are worth changing. OK to merge either way.
Thank you, @bryanhanson, for the quick review! |
Closes #29