# Automatically create Zenodo DOIs?

**URL:** <https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190>\
**Category:** Developers\
**Tags:** maintenance\
**Created:** [January 2, 2017, 12:44am UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190 "2017-01-02T00:44:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ariddell](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@ariddell](https://discourse.mc-stan.org/u/ariddell)\
**Post date:** [January 2, 2017, 12:44am UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/1 "2017-01-02T00:44:44Z")

</div>

Zenodo seems like a Good Thing. Should Zenodo be configured to automatically mint a DOI based on Github releases? It seems like this is a simple way to handle things since no manual intervention is needed.

Seems like the last release on Zenodo is 2.11.0, [https://zenodo.org/record/58873](https://zenodo.org/record/58873)

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [January 2, 2017, 1:53am UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/2 "2017-01-02T01:53:20Z")

</div>

It’s enabled. The latest version is 2.14. I don’t know where you found that  
link – how do we update that info?  
See: [https://zenodo.org/account/settings/github/repository/stan-dev/stan](https://zenodo.org/account/settings/github/repository/stan-dev/stan)

The badge from the github readme points to the right version:

> **[stan-dev/stan](https://github.com/stan-dev/stan)**
>
> Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details. - stan-dev/stan

Could I give you the reigns? Maybe you want to create ones for RStan,  
CmdStan, PyStan, and Math separately?

---

<div class="post-metadata">

**Author:** ![ariddell](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@ariddell](https://discourse.mc-stan.org/u/ariddell)\
**Post date:** [January 2, 2017, 1:32pm UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/3 "2017-01-02T13:32:15Z")

</div>

I searched for “Stan” on zenodo and only found the 2.12 one. Strange!

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [January 2, 2017, 1:50pm UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/4 "2017-01-02T13:50:13Z")

</div>

I did too and I also found that one. I don’t know how to update Zendoo to point to the latest.

---

<div class="post-metadata">

**Author:** ![ariddell](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@ariddell](https://discourse.mc-stan.org/u/ariddell)\
**Post date:** [January 5, 2017, 4:28pm UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/5 "2017-01-05T16:28:35Z")

</div>

I turned on pystan but I don’t have permission for rstan and cmdstan and  
math. I think you can just flip the switch(es) on the following pages  
(just as it currently is for stan-dev/stan) and all will be well:

- [https://zenodo.org/account/settings/github/repository/stan-dev/cmdstan](https://zenodo.org/account/settings/github/repository/stan-dev/cmdstan)
- [https://zenodo.org/account/settings/github/repository/stan-dev/rstan](https://zenodo.org/account/settings/github/repository/stan-dev/rstan)
- [https://zenodo.org/account/settings/github/repository/stan-dev/math](https://zenodo.org/account/settings/github/repository/stan-dev/math)

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [January 6, 2017, 3:00am UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/6 "2017-01-06T03:00:40Z")

</div>

@ariddell, I enabled it for CmdStan, RStan, and Math. Is that the right thing to do? (I don’t think there’s any harm in it.)

@bgoodri, please let me know if you want me to disable RStan.

@bgoodri or @jonah, please let me know if you want me to enable anything else. (or do it yourself?)

---

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [January 6, 2017, 3:04am UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/7 "2017-01-06T03:04:48Z")

</div>

Zenodo says I don’t have permission

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [January 6, 2017, 3:12am UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/8 "2017-01-06T03:12:48Z")

</div>

Try now?

---

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [January 6, 2017, 3:14am UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/9 "2017-01-06T03:14:20Z")

</div>

Still says permission required.

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [January 6, 2017, 3:16am UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/10 "2017-01-06T03:16:04Z")

</div>

I hate permissioning… I’ll try a few more things. brb.

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [January 6, 2017, 3:19am UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/11 "2017-01-06T03:19:05Z")

</div>

I’ve got nothing. Can you log out and log back into Zenodo? Or refreshing?  
I made you an admin on stan-dev’s GitHub.

---

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [January 6, 2017, 3:35am UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/12 "2017-01-06T03:35:09Z")

</div>

I think it is working now.

---

<div class="post-metadata">

**Author:** ![avehtari](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/avehtari/32/5935_2.png) [@avehtari](https://discourse.mc-stan.org/u/avehtari)\
**Post date:** [January 6, 2017, 1:36pm UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/13 "2017-01-06T13:36:45Z")

</div>

Stan github page [https://github.com/stan-dev/stan/](https://github.com/stan-dev/stan/) has now link to Zenodo page [https://zenodo.org/record/221370#.WG-cCPHfquU](https://zenodo.org/record/221370#.WG-cCPHfquU) which says  
Cite as:  
Daniel Lee, Bob Carpenter, Peter Li, Michael Betancourt, maverickg, Marcus Brubaker, … Daniel Mitchell. (2016). stan-dev/stan v2.14.0 [Data set]. Zenodo. [http://doi.org/10.5281/zenodo.221370](http://doi.org/10.5281/zenodo.221370)

which strangely has “[Data set]” in the recommended citation.

Aki

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [January 6, 2017, 1:46pm UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/14 "2017-01-06T13:46:10Z")

</div>

Do you know how to fix that?

---

<div class="post-metadata">

**Author:** ![ariddell](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@ariddell](https://discourse.mc-stan.org/u/ariddell)\
**Post date:** [January 6, 2017, 2:32pm UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/15 "2017-01-06T14:32:28Z")

</div>

Sounds like a bug. In other news, I can’t search for Stan past v2.12.0:

[https://zenodo.org/search?page=1&size=20&q=stan&type=software&sort=mostrecent](https://zenodo.org/search?page=1&size=20&q=stan&type=software&sort=mostrecent)

---

<div class="post-metadata">

**Author:** ![Bob\_Carpenter](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bob_carpenter/32/9230_2.png) [@Bob\_Carpenter](https://discourse.mc-stan.org/u/Bob_Carpenter)\
**Post date:** [January 6, 2017, 6:27pm UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/16 "2017-01-06T18:27:36Z")

</div>

Just make sure to add this to the dev ops time sheet!  
Every time we add things like this, it leads to downstream  
maintenance cost.

I don’t have an opinion about whether DOIs are worth the  
effort.

- Bob

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [January 6, 2017, 6:34pm UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/17 "2017-01-06T18:34:33Z")

</div>

+1. I’m gonna put up a post on the dev-only section regarding what keys I  
have.

The dev-ops roll, I can keep updating in a public post.

---

<div class="post-metadata">

**Author:** ![ariddell](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@ariddell](https://discourse.mc-stan.org/u/ariddell)\
**Post date:** [January 6, 2017, 6:38pm UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/18 "2017-01-06T18:38:00Z")

</div>

The signal advantage of this system is that it just creates DOIs  
whenever you make a github release. There should be zero time spent on  
this once it’s working.

---

<div class="post-metadata">

**Author:** ![Bob\_Carpenter](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bob_carpenter/32/9230_2.png) [@Bob\_Carpenter](https://discourse.mc-stan.org/u/Bob_Carpenter)\
**Post date:** [January 6, 2017, 7:46pm UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/19 "2017-01-06T19:46:29Z")

</div>

> ariddell Developer  
> January 6  
> The signal advantage of this system is that it just creates DOIs  
> whenever you make a github release. There should be zero time spent on  
> this once it’s working.

That’d be nice, but I wouldn’t bet the farm on  
Zenodo maintaining a consistent API or even existing  
long term (what happens if Thomson-Reuters buys them  
and rebrands, for instance?). And who knows what  
GitHub’s going to do in the future.

If we add this to all our interfaces and packages, it’ll  
require some work whenever a new package is added to get  
the scripting working.

Plus, we should have some minimal doc on how it works on  
stan-dev to make future dev ops easier.

The point I’m trying to make is that we should go into  
these things with the realization that there will be  
some long term effort involved. Nothing’s free that’s  
meant to persist. I was just saying I don’t have an opinion  
on whether DOIs are worth the effort. The Stan project’s  
intentionally set up to give you the flexibility to do it  
if you think it’s worth the effort. Otherwise, we’d be  
mired in endless bureaucracy or turn into a dictatorship.  
The fun part about the project for me is being able to improve  
it in ways I think are worthwhile while getting improvements  
from everyone else coming in at the same time.

- Bob

---

<div class="post-metadata">

**Author:** ![ariddell](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@ariddell](https://discourse.mc-stan.org/u/ariddell)\
**Post date:** [January 7, 2017, 7:30pm UTC](https://discourse.mc-stan.org/t/automatically-create-zenodo-dois/190/20 "2017-01-07T19:30:25Z")

</div>

Bob, I think we’re broadly in agreement. In general I don’t bank on any  
new service being around for more than a year or three.

Zenodo seems like it might well stick around. It seems like its backing  
is more or less comparable to the backing enjoyed by arXiv.

> **[Zenodo - Research. Shared.](https://about.zenodo.org/)**
>
> Zenodo is a free and open digital archive built by CERN and OpenAIRE, enabling researchers to share and preserve research output in any size, format and from all fields of research.
