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

Running metadata_add_source_doi the first time reveals missing rcrossref package #178

Open
hrlai opened this issue Nov 26, 2024 · 3 comments
Assignees

Comments

@hrlai
Copy link

hrlai commented Nov 26, 2024

Hi there, thanks for such a great package.

Just to report running the function metadata_add_source_doi the first time, I got

Error in loadNamespace(x) : there is no package called ‘rcrossref’

This went away after installing rcrossref. Might need to add it to the imports/dependencies?

@ehwenk
Copy link
Collaborator

ehwenk commented Nov 27, 2024

@dfalster I just checked the DESCRIPTION file and rcrossref is listed under Suggests. Does it need to be under Imports instead? It is used in setup.R, the function starting line 661, and also in tests.

@ehwenk
Copy link
Collaborator

ehwenk commented Nov 27, 2024

@hrlai Thanks for pointing this out to us! And for using the traits.build package.

@dfalster
Copy link
Member

dfalster commented Dec 5, 2024

We could do include in either Suggests or Imports.

it was listed as Suggests because this functionality is optional. It's not needed for essential operations of the package (compiling a database). So we reduce the dependencies by listing as Suggests. The cost of that approach is that this warning happens. Other optional packages are treated similarly.

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

3 participants