Publishing
Using R or another programming language to analyse your data means all the steps you’ve taken to get from data to results are laid out in your script. Having your code in a public GitHub repo is a great way to share that code in a way that makes it easier for others to immediately reuse it. But by ‘publishing’ that code (by getting a DOI) you can gain even more visibility for your software, and ensure you get credit for it.
We’ll discuss two options for publishing your code. Both will get you a DOI so your code becomes citable.
1. Connect your GitHub repo with Zenodo
If you already have a Zenodo account, you can connect your GitHub. If you don’t have an account already, log in to Zenodo with your GitHub account.
Then go here and toggle the button next to the repo on. Zenodo will archive your repository (and will issue a new DOI each time you create a new GitHub release).