-
Notifications
You must be signed in to change notification settings - Fork 1
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
Restate the baseline test cases to avoid unintended testing warnings #29
Comments
Thanks for flagging those cases. One way would be to wrap them into
We could also change the column classes but at least in the current cases they're there intentionally. For example, it used to be a relatively common occurrence that people were passing dates as factors to functions. This is why I put For the last warning you mention, we could specify the format in the function call and the warning would disappear, regardless of the column class. |
One thing regarding |
Yes, good point. I think as well we should just wrap, for testing purposes, Other idea for the package quality would be to implement check (by a function/class...e.g. is_valid_range_frame) to test ultimately if correct data is being passes into the functions, which gives more control over user friendly messaging on issues (and hence boost acceptance). Then we can reuse those in all other functions. |
That'd be great, thanks. And I'll try to think of some scalable ways to include custom suppression.
I agree that we'd benefit from that. I'm quite unsure about the best approach though, especially with dates/timestamps - I'm open to any suggestions here. One thing about the following warning:
Isn't |
The test cases are built upon data frames where date is mostly of numeric mode, which shoots up (correctly, it is desired and intended in the code) the following warning message:
As take a look at the warning:
can it be avoided by proper column class?
The text was updated successfully, but these errors were encountered: