-
Notifications
You must be signed in to change notification settings - Fork 7
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
improving .assert_package() #171
Conversation
new function `.get_package_dependencies()` `.assert_package()` now checks the type of comparison for minimum version cf. ddsjoberg/gtsummary#1296
New function .get_package_dependencies() returning a tibble with all depencies, minimum version and comparison operator.
The comparison operator is taken into account by |
Wow, so so fast! Thanks for adding this! I can review tonight! |
Can we re-add that unit test we excluded on GH Actions? Does it pass now? |
I have updated the unit test. Let see if it is OK now |
@larmarange everything looks perfect! The only think I can think of is when multiples of the same package are installed (like below)
There is a line that returns the most recent version (arranging by version number). But I think that the line that is picked should be the line associated with the first location listed in For example, in the script above, I have two versions of broom.helpers installed in two locations. We should return the dependency information associated with the package saved in |
lib.loc now an argument passed to installed.packages()
|
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.
Looks great!! Thank you for the great update!
new function
.get_package_dependencies()
.assert_package()
now checks the type of comparison for minimum versioncloses ddsjoberg/gtsummary#1296