-
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
Refactoring of check_package()
+ return TRUE instead of package + tests
#247
Refactoring of check_package()
+ return TRUE instead of package + tests
#247
Conversation
overlooked from old version, discussed with Damiano Co-Authored-By: Damiano Oldoni <damiano.oldoni@inbo.be>
test was failing
check_package()
+ return TRUE instead of package + tests
The usage of the `datapkg` argument is tested in test-check_package.R, I don't think it needs to be tested for every function individually.
…https://github.com/inbo/camtraptor into 245-have-check_package-return-error-or-true-on-valid
Especially taking care of improving check_package() in check_package.R based on the work done in #223
Probably removed while merging from main?
This because check_package() has been improved by adding media = FALSE by default.
Should the depreciation message be tested for every function individually? And if so, should it be tested as a snap (function wrapped in I removed some of these checks as I felt they were redundant, and were causing me some trouble and as I felt they were covered elsewhere. But have no objection against testing things multiple times. |
I thought to do so. Checks at function level should be self contained. The warning is returned by each function, so maybe good to test for each function separately. Notice that the warning will disappear soon as the arg Agree to check better the warning by literal matching. |
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.
Nice job, @PietrH. I have just added some changes to deal with features introduced by other parallel PRs.
fixes #245
This PR is a blocker for #244