Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t.
A few years ago, the R community started using ORCID (“Open Researcher and Contributor ID”) to persistently and uniquely identify individual authors of packages in DESCRIPTION.
The idea is the following: you enter authors’ ORCID as a specially named comment in their person()
object.
For instance I can be represented by:
person("Maëlle", "Salmon", , "maelle@ropensci.org", role = c("cre", "aut"), comment = c(ORCID = "0000-0002-2815-0399"))
Although anyone could use your ORCID, maliciously or inadvertently1, you definitely benefit from using your ORCID in your work.
In the case of R packages, CRAN pages and pkgdown websites feature a pretty icon linking to your ORCID profile that in turn can link to your favorite online presence.
Recognition! Personal branding!
This year, the exact same idea was applied to organizations using ROR (“Research Organizations Registry”) IDs.
Any organization, be it a research organization, an initiative or a company, can request to be listed in the registry.
A few months ago, it became possible to list ROR IDs in DESCRIPTION, which a few dozen
CRAN packages currently do –
although this is still far from the thousands of CRAN packages adopting ORCIDs.
Thanks to R Core for adding the feature2 and to Achim Zeileis for spreading the news.
A package maintainer might need to list organizations in DESCRIPTION
: for instance a company that owns the copyright to the package (“cph” role), an entity that funded work on the software (“fnd” role).
Adding the organization’s ROR ID to its person()
object identifies it even more clearly.
As an illustration, rOpenSci can be represented by:
person("rOpenSci", role = "fnd", comment = c("https://ropensci.org/", ROR = "019jywm96"))
The ROR icon, although less striking than the bright green ORCID icon, appears on the CRAN page of the package and links to the organization’s ROR page that in turn can link to the organization’s website:

In 2018 we had reported about tooling for using ORCID.
This year, we’d like to explain the tooling for including ROR IDs.
ROR support in the {devtools} ecosystem
Once ROR IDs were supported by base R, a next technical step was for them to be supported by Posit’s “devtools ecosystem” too.
Even if devtools is not strictly necessary for developing packages, many package developers, including some in the rOpenSci community, do use devtools.
The code supporting ROR in desc, roxygen2 and pkgdown follows the code supporting ORCID in those packages.
It is very fortunate that ORCID support was added before ROR because “orcid” is a better string to search for than “ror” that comes up in, say, “error”.
ROR IDs support in {desc}
The desc package, maintained by Gábor Csárdi, helps you manipulate DESCRIPTION
files programmatically.
In its current development version, all functions handling authors (adding, searching or complementing entries) now feature a ror
argument.
Furthermore, a new function, desc_add_ror()
, was created.
For instance you can add a ROR ID to an author entry:
desc::desc_add_ror("019jywm96", given = "rOpenSci")
You can add an author entry including its ROR ID:
desc::desc_add_author(given = "rOpenSci", ror = "019jywm96", role = "fnd")
These functions can be handy to update a bunch of packages at once.
Even if packages are updated one by one, it is shorter to share and apply the instructions as a code snippet.
ROR support in {roxygen2}
The roxygen2 package, maintained by Hadley Wickham, generates your package’s NAMESPACE
and manual pages using specially formatted comments.
Among those manual pages, your package might (and should, according to our dev guide) contains a package-level one.
You can create such a page using usethis::use_package_doc()
.
The following content will be added to R/package-name-package.R
, for instance R/usethis-package.R
.
#' @keywords internal "_PACKAGE" ## usethis namespace: start ## usethis namespace: end NULL
Running devtools::document()
will create an Rd file for ?package-name
, whose content comes from DESCRIPTION
, including ORCIDs and ROR IDs.
In this case, you might want to install roxygen2’s development version to see the ROR ID properly reformatted to an URL.
Example of the tinkr package: package-level doc source,
package-level manual page,
manual page on pkgdown.
ROR support in {pkgdown}
The pkgdown package, maintained by Hadley Wickham, creates a documentation website for your package based on its metadata and documentation.
Since its 2.1.2 version, ROR IDs in DESCRIPTION
are transformed into icons, similar to ORCID IDs.
The sidebar of tinkr’s website includes a ROR icon near rOpenSci name.
Support for ROR icons?
As of today, ROR icons like those on the CRAN pages, pkgdown websites and our website’s footer come from files. We have however opened an icon request for ROR in the Font Awesome repository, that you can upvote by using thumbs up. This strategy worked for ORCID. There’s already a ROR icon in the more specialized academicons library.
Conclusion: go forth, register and use ROR IDs!
In this tech note, we explained what ROR IDs are: persistent IDs for organizations.
They are to organizations what ORCIDs are to individuals.
We’ve shown ROR IDs are supported in the base R and devtools ecosystems.
ROR IDs can help identify more clearly an entity you list in your package’s DESCRIPTION
because it, say, funded the work or owns the copyrights to it.
We encourage you to register your organization to the Research Organization Registry and to use the resulting ID in your package’s DESCRIPTION
.
Such a task could be tackled during a package spring cleaning.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you’re looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t.
Continue reading: Roaringly Acknowledge Organizations with ROR IDs in DESCRIPTION
Key Points
The R community uses special identifiers such as ORCID (“Open Researcher and Contributor ID”) and ROR (“Research Organizations Registry”) to uniquely and persistently identify individual authors and organizations involved in the creation of R packages. These identifiers offer recognition, a personal and organization brand element and can be linked to online profiles or websites.
Long-Term Implications
If used consistently and appropriately, ORCID and ROR IDs can greatly support the open science movement by ensuring clear attributions of contributions to scientific packages and results. This can foster transparency and collaboration within the scientific community, stimulating research and development. In the future, these IDs could become a standard tool for recognizing the work of researchers and organizations involved in the creation of scientific packages. It could also enhance the mobility and recognition of individual contributors across multiple projects.
Possible Future Developments
We may witness an expansion of these unique identifiers in other areas of open-source development, reaching beyond the scientific community. As these identifiers grow in popularity, they could integrate with other digital tools used by researchers, such as digital repositories, lab notebooks and bibliographic management tools. This would allow for a seamless tracking and crediting of research contributions, while also promoting open science practices.
Actionable Advice
If you’re a part of the R community or if you’re engaged with open source development, consider adopting the use of ORCID and ROR IDs. Registering your organization with the Research Organization Registry and using these IDs consistently can enhance visibility and recognition for your work. Also, take advantage of the tooling available for including ROR IDs such as in ‘devtools’, ‘desc’, ‘roxygen2’ and ‘pkgdown’ packages.
If you’re already using these identifiers, explore further how you can integrate them with other tools and platforms you use. And lastly, contribute to further enhancement of the system by submitting and voting for icon requests.