Skip to content
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

more focused dependency options? #124

Open
pearsonca opened this issue Jul 25, 2024 · 1 comment
Open

more focused dependency options? #124

pearsonca opened this issue Jul 25, 2024 · 1 comment

Comments

@pearsonca
Copy link
Contributor

I'm using socialmixr in a little analysis, purely for its contact matrix manipulation functionality. Adding socialmixr ended up actually adding 22 package dependencies, which don't really seem relevant to my use of the package. Feels like a lot.

What might be a nice solution here is something like the core calculation(s) (e.g. looking at a single population demography + contact pattern data) extracted into a smixrlite package which provides only the math and none of the (useful, but potentially superfluous for some users) other capabilities. socialmixr could then wrap those core capabilities with the current interface.

@sbfnk
Copy link
Collaborator

sbfnk commented Sep 13, 2024

My main worry here would be the added burden of maintenance with two separate packages (requiring integration tests spanning both packages). Not insurmountable but worth considering if the benefits from splitting outweighs these drawbacks.

That said both the downloading and plotting functions could probably stand on their own and have separate dependencies.

Currently socialmixr has 12 dependencies, which is well within the CRAN limit of 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

No branches or pull requests

2 participants