-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Orcid #70
Orcid #70
Conversation
person(given = "Maëlle", | ||
family = "Salmon", | ||
role = "ctb", | ||
comment = c(ORCID = "0000-0002-2815-0399"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not adding my ORCID would be weird 😹
Codecov Report
@@ Coverage Diff @@
## master #70 +/- ##
==========================================
+ Coverage 98.77% 98.82% +0.05%
==========================================
Files 18 18
Lines 1065 1111 +46
==========================================
+ Hits 1052 1098 +46
Misses 13 13
Continue to review full report at Codecov.
|
R/authors-at-r.R
Outdated
orig, | ||
w, | ||
"comment", | ||
c(comment, ORCID = orcid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, what happens if there is already an orcid there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. Do you agree that the old one should get replaced by the new one if that's the case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I do. It would be nice to have a test case for this as well. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll also add a test for this.
* add_me now can use the `ORCID_ID` environment variable. | ||
|
||
* The comment field can now be a named character vector. (@maelle, #69; @gvegayon, #65) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you pls rewrite this more in the style of http://style.tidyverse.org/news.html#before-release
New add_orcid()
method and desc_add_orcid()
functions...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried :-)
Thanks! Looks great in general, just had a few questions, and some small requests. |
Thanks, will make the changes. I was also wondering whether/how to add checks that the ORCIDs are unique i.e. that the DESCRIPTION doesn't feature several authors with the same ORCID. At which step could this be checked? Are there any other similar checks already (e.g. that there's at least one maintainer) <- I could probably go read more code to answer that question. |
No author checks currently. Line 165 in 9013f7d
|
Ok! But does it make sense for |
Yes, I think that would make sense indeed. Good catch! |
I'm also going to add a mocking test for |
Thanks for the feedback, I've made quite a few edits! The checks have passed, and I won't add more changes before your next review @gaborcsardi 😸 One more thing I've been wondering is whether the order of elements in comment should be consistent across authors, i.e. should e.g. ORCID always be the first element if there are several elements in comment. Really a detail though! |
I don't think it matters. Thanks! |
Looks really good, thanks much! |
Cf #63