How to use Zenodo to obtain a Digital Object Identifier (DOI) for your R project or package in a GitHub repo.
There comes a time when you, or possibly others, want to cite your software code, whether as a project or a package. A DOI (Digital Object Identifier) is a unique and never-changing string assigned to online (journal) articles, books, and other works. DOIs make it easier to retrieve works, which is why citation styles, like APA and MLA Style, recommend including them in citations.
Journal articles are assigned DOIs, which look something like this: doi:10.1080/02626667.2018.1560449
A good explainer for this entire process can be found at the UC Berkeley library website here.
Zenodo is an open science research repository, which is itself open source. You can deposit your data, code, preprints, etc. and generate DOIs for citation.
Steps:
Releases
button.Choose a tag
- and add a version number for this release, like v1.0.0
.Publish release
button.https://zenodo.org/github-account-name/settings/github/
- you will see that your repo is listed.Enabled Repositories
to your repo.
For attribution, please cite this work as
Higgins (2022, April 28). Medical R: Obtaining a Zenodo DOI for your R project or package. Retrieved from https://higgi13425.github.io/medical_r/posts/2022-04-28-obtaining-a-zenodo-doi-for-your-r-project-or-package/
BibTeX citation
@misc{higgins2022obtaining, author = {Higgins, Peter}, title = {Medical R: Obtaining a Zenodo DOI for your R project or package}, url = {https://higgi13425.github.io/medical_r/posts/2022-04-28-obtaining-a-zenodo-doi-for-your-r-project-or-package/}, year = {2022} }