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

Complicance overview fails if Crossref metadata lack funder's DOI #358

Open
fkohrt opened this issue Mar 7, 2023 · 0 comments
Open

Complicance overview fails if Crossref metadata lack funder's DOI #358

fkohrt opened this issue Mar 7, 2023 · 0 comments

Comments

@fkohrt
Copy link

fkohrt commented Mar 7, 2023

For cases where the Crossref metadata lack the funder's DOI, the compliance overview cannot be created:

biblids::as_doi("10.1098/rsos.221306") |>
  metacheck::get_cr_md() |>
  metacheck::cr_compliance_overview()

leads to the following error:

Error in `.data$DOI`:
! Column `DOI` not found in `.data`.
Run `rlang::last_error()` to see where the error occurred.

Only after adding the funder's DOI manually it works:

biblids::as_doi("10.1098/rsos.221306") |>
  metacheck::get_cr_md() |>
  within({
    funder[[1]]$DOI <- "10.13039/501100001659"
    funder[[1]]$doi.asserted.by <- NA_character_
  }) |>
  metacheck::cr_compliance_overview()
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