If someone has provided a useful block of code to an R library, what is the appropriate role for them in package documentation?
Why it matters
I have seen contributor role given to such cases, but after reviewing the definitions of author and contributor, I believe author is the appropriate role. But there may be something else more appropriate (or perhaps both author/contributor)
What library of congress says
Author:
A person, family, or organization responsible for creating a work that is primarily textual in content, regardless of media type (e.g., printed text, spoken word, electronic text, tactile text) or genre (e.g., poems, novels, screenplays, blogs). Use also for persons, etc., creating a new work by paraphrasing, rewriting, or adapting works by another creator such that the modification has substantially changed the nature and content of the original or changed the medium of expression
Contributor:
A person, family or organization responsible for making contributions to the resource. This includes those whose work has been contributed to a larger work, such as an anthology, serial publication, or other compilation of individual works. If a more specific role is available, prefer that, e.g. editor, compiler, illustrator
Possible points of confusion
- When a pull request is accepted, github will refer to the creator of the PR as a 'contributor'
- In day-to-day conversation, someone who provides useful input into a project could reasonably be called a 'contributor'