Skip to content

Add grant ID for EU-funded zenodo communities#183

Merged
ThierryO merged 13 commits into0.5.3from
182-support-eu-open-research-repository-funding-zenodo-metadata-via-description-role-fnd
Feb 18, 2026
Merged

Add grant ID for EU-funded zenodo communities#183
ThierryO merged 13 commits into0.5.3from
182-support-eu-open-research-repository-funding-zenodo-metadata-via-description-role-fnd

Conversation

@wlangera
Copy link
Contributor

@wlangera wlangera commented Feb 16, 2026

Example: grant_id = "283595" (European Commission grants only) or funder DOI-prefixed: grant_id = "10.13039/501100000780::283595" (All grants, recommended) (ref)

@wlangera
Copy link
Contributor Author

wlangera commented Feb 16, 2026

I tested the grant ID in this PR and it works.

@wlangera wlangera marked this pull request as ready for review February 16, 2026 20:02
@wlangera
Copy link
Contributor Author

@ThierryO I need to publish some reports for B-Cubed by the end of February. Can you please look at this asap? It would save me a lot of manual labour

@ElsLommelen you should be able to use the publisher role to add INBO as publisher in Zenodo

@ElsLommelen
Copy link
Contributor

It works fine if I add the publisher manually in DESCRIPTION, and I don't mind updating it like this for existing packages, but could this possibly be added automatically (or after asking a question) when starting a new package? Otherwise I will surely forgot it several times (unless it is in the manual). As it is mandatory or strongly recommended (?), I think everyone wants to have it added with a minimal of effort.

Copy link
Member

@ThierryO ThierryO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to document this new feature somewhere.

A few more things to do:

  • projects should have these features too
  • organisations should be able to enforce the publisher

Make at least an issue if you can do that in the short run.

grant_id <- grant_id[!is.na(grant_id)]

if (length(grant_id) > 0) {
stopifnot("Only single grant ID possible" = length(grant_id) == 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check that Zenodo allows only a single grant before enforcing this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be an array (ref). I will fix this.

@wlangera
Copy link
Contributor Author

I have made the suggested changes:

  • use grant_id instead of id
  • grants should be a list instead of a single value
  • added documentation in zenodo.Rmd vignette

This PR is a working fix for #180 and #183
I would create the following issues or add to existing issues:

  • automate publisher when creating a repository
  • organisations should be able to enforce the publisher
  • add grants and publisher for projects (not only packages)

Next week I will discuss this topic at the Open Science Helphub with the datastewards.
Afterwards, I can make a meta-issue which encompasses and summarizes all issues related to Zenodo metadata.
There we can also discuss potential consistent, comprehensive solutions regarding Zenodo metadata.

Is this fine for you?
This way I can already publish my repos on Zenodo this week with v0.5.3.


@ThierryO can you also fix #184 in this PR? Or is this more complicated than it looks?
I tried a replace all but the unit tests fail.

@wlangera wlangera requested a review from ThierryO February 17, 2026 13:25
Copy link
Member

@ThierryO ThierryO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work.

@ThierryO ThierryO changed the base branch from main to 0.5.3 February 18, 2026 09:20
@ThierryO ThierryO merged commit b0fafe5 into 0.5.3 Feb 18, 2026
8 checks passed
@ThierryO ThierryO deleted the 182-support-eu-open-research-repository-funding-zenodo-metadata-via-description-role-fnd branch February 18, 2026 09:22
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.

Support EU Open Research Repository funding zenodo metadata via DESCRIPTION (role = "fnd")

3 participants