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

Controling arg recursive passed to tools::package_dependencies() #149

Open
courtiol opened this issue Sep 11, 2022 · 1 comment
Open

Controling arg recursive passed to tools::package_dependencies() #149

courtiol opened this issue Sep 11, 2022 · 1 comment
Labels

Comments

@courtiol
Copy link

When using makeDepGraph() it would be nice to be able to prevent recursion on dependencies.
That would lead to plots easier to read for packages with a lot of dependencies.
I will attempt a PR.

@andrie
Copy link
Owner

andrie commented Mar 24, 2024

I commented in the PR too:

I suspect the better way to do this is to compute on the dependency graph itself, rather than to limit recursion.

In igraph you can compute the shortest distance to a node: https://r.igraph.org/reference/distances.html?q=distance#null

It should then be possible to remove all nodes with a distance greater than n.

@andrie andrie added the Idea label Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants