8000 Review package dependencies by lauramaxwell · Pull Request #2007 · Gilead-BioStats/gsm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Review package dependencies #2007

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

Merged
merged 6 commits into from
Jan 7, 2025
Merged

Review package dependencies #2007

merged 6 commits into from
Jan 7, 2025

Conversation

lauramaxwell
Copy link
Contributor
@lauramaxwell lauramaxwell commented Jan 6, 2025

Removes unused dependencies for the gsm package.

Closes #1979

@lauramaxwell lauramaxwell marked this pull request as draft January 6, 2025 16:25
Copy link
Contributor
@jonthegeek jonthegeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

One ~style comment: I prefer to only @importFrom (or @import) things in these categories:

  • Things that are used all over the place (eg cli_abort).
  • Things to allow you to put a package in Imports without R CMD Check freaking out (eg sometimes that's necessary for glue or lifecycle).
  • Things that are difficult to namespace (%||% from rlang, etc).

For everything else, just pkg::function when they're used. That way you don't keep @importFroming after the function is no longer used.

Not a necessary change, just my $0.02!

@jonthegeek
Copy link
Contributor

Oops! Looks like the specific method we use might come from {broom} specifically.

@lauramaxwell
Copy link
Contributor Author

Oops! Looks like the specific method we use might come from {broom} specifically.

Yep- just saw those test failures. looks like i'll have to revert it to using broom. i'll get to that after scrum. thanks for the quick review!

@lauramaxwell lauramaxwell marked this pull request as ready for review January 6, 2025 21:48
@lauramaxwell lauramaxwell merged commit ab71eae into dev Jan 7, 2025
6 checks passed
@lauramaxwell lauramaxwell deleted the fix-1979 branch March 6, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QC: Review Imports and Suggests in NAMESPACE and DESCRIPTION
2 participants
0