Skip to contents

Set up an author object using the quarto author schema https://quarto.org/docs/journals/authors.html.

Usage

author(given, family, orcid = NULL, roles = c(), ...)

Arguments

given

a character string with the author's first name(s)

family

a character string with the author's last name(s)

orcid

the author's unique ORCiD (see https://orcid.org/)

roles

a vector of roles from the CRediT taxonomy (see https://casrai.org/credit/); use credit_roles() to view the full list

...

further info to add to author object (see Details)

Value

a list

Details

The author schema is as follows (the function currently does not do much checking). The metadata/roles attribute is specific to this package.

author:
  - id: "LDB"
    number: 1
    name:
      given: Lisa M.
      family: DeBruine
      literal: Lisa M. DeBruine
      dropping-particle: ""
      non-dropping-particle: ""
    url: https://debruine.github.io
    email: debruine@gmail.com
    fax: ""
    orcid: 0000-0002-7523-5539
    note: ""
    acknowledgements: ""
    attributes:
      corresponding: true
      equal-contributor: false
      deceased: false
    metadata:
      roles: [Conceptualization, Methodology]
    affiliations:
    - id: UofG-SPN
      number: 1
      name: University of Glasgow
      department: School of Psychology & Neuroscience
      address: 62 Hillhead Street
      city: Glasgow
      region: Scotland
      country: United Kingdom
      postal-code: G12 8QB
      url: https://www.gla.ac.uk/schools/psychologyneuroscience/

Examples

a <- author(
  "Lisa M.", "DeBruine",
  orcid = "0000-0002-7523-5539",
  roles = c("Conceptualization", "Methodology"),
  email = "debruine@gmail.com",
  affiliation = list(
    name = "University of Glasgow",
    department = "School of Psychology & Neuroscience"
  )
)