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

adds LinkingTo items to dependency reporter (resolves #303) #319

Merged
merged 2 commits into from
Apr 19, 2024
Merged

Conversation

bburns632
Copy link
Collaborator

This PR adds packages listed in the the "LinkingTo:" section of the DESCRIPTION file to the list of dependencies. As noted in #303, these are overlooked today. Note, this also adds the recursive dependencies of the "LinkingTo:" packages to the graph.

Our test package milne has had Rcpp added as a "LinkingTo:" dependency for unit testing. Here's a look at milne's dependency network before and after this change.

BEFORE

AFTER

before after

What Does "LinkingTo:" do?

In short, if you want to reference C++ headers from another R package, you should list that package under "LinkingTo:".

More here 👉 https://stackoverflow.com/questions/45513058/what-does-linkingto-do-in-an-r-package

@bburns632 bburns632 merged commit 6c75587 into main Apr 19, 2024
6 checks passed
@bburns632 bburns632 deleted the linkto branch April 19, 2024 19:57
@bburns632 bburns632 mentioned this pull request May 3, 2024
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.

1 participant