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

Demote "no results" error to warning in elink_list method #4

Open
allenbaron opened this issue Mar 17, 2022 · 0 comments
Open

Demote "no results" error to warning in elink_list method #4

allenbaron opened this issue Mar 17, 2022 · 0 comments

Comments

@allenbaron
Copy link
Collaborator

For a single object, a lack of API results should (and current does) result in an error:
https://github.com/allenbaron/DO.utils/blob/0e29fb1d8716385d54beea020046a4830b2479c0/R/extract.R#L83-L90

However, this error is propagated to the extract_pmid.elink_list() method, which can cause issues if a new publication is included in the list and has not yet been cited. A parameter needs to be added to control whether this error should occur or if it should be demoted to a warning.

Handling is also needed to make the warning less repetitive/verbose and more informative.

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

1 participant