-
Notifications
You must be signed in to change notification settings - Fork 23
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
Creation of functions to set intervals after verification #335
base: main
Are you sure you want to change the base?
Conversation
@billdenney Let me know if these functions are too simple or not. Also, I want to note that I have both functions inside a single script file since they are very related. Edit:
These two ideas seem to cause me some confusion. [Is this expected?] |
Yes, multiple related functions should go into the same file.
The initial intervals would be a data.frame. They get tested with a PKNCAdata object that may or may not yet have the intervals added. And, the core test is related to the group column names in the PKNCAconc object. Does that make it clearer? |
Understood, here are some further notes:
These changes have caused 5 tests to fail, which I am looking into:
Where we see some tests using the interval columns:
|
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.
Please add a note to the news file, too.
|
||
expect_error(assert_intervals(o_data, invalid_intervals), | ||
"The following columns in 'intervals' are not allowed:") | ||
}) |
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.
Please also add a test for set_intervals()
.
Can you please link to the test file lines that are failing? For conc_above and time_above likely need some way to add them to the intervals list in some way. impute should be added as a special case like start and end. foo was likely an intentional test of something else. I would need to see where the error occurs to know what to do. |
Here are the links for the failing tests: IMPUTE Edit:
|
So far:
|
Yes, "impute" can be added to the
Yes,
That's the right change.
|
Here is the first pass of the creation of functions noted in issue #329 .
If the functions look to do the expected tasks, I will begin on elaborate testing.