tests/testthat/_snaps/author.md

Legacy author fields are challenged

Code
  challenge_legacy_author_fields()
Message
  x Found legacy Author and/or Maintainer field in DESCRIPTION.
    usethis only supports modification of the Authors@R field.
  i We recommend one of these paths forward:
    * Delete these fields and rebuild with `use_author()`.
    * Convert to Authors@R with `desc::desc_coerce_authors_at_r()`,
      then delete the legacy fields.
Condition
  Error:
  ! User input required, but session is not interactive.
  Query: Do you want to cancel this operation and sort that out first?

Decline to tweak an existing author

Code
  use_author("Jennifer", "Bryan", role = "cph")
Condition
  Error in `check_author_is_novel()`:
  ! "Jennifer Bryan" already appears in "Authors@R".
  Please make the desired change directly in DESCRIPTION or call the desc package directly.

Placeholder author is challenged

Code
  use_author("Charlie", "Brown")
Message
  v Adding to Authors@R in DESCRIPTION:
    Charlie Brown [ctb]
  i Authors@R appears to include a placeholder author:
    First Last <first.last@example.com> [aut, cre] (YOUR-ORCID-ID)


Try the usethis package in your browser

Any scripts or data that you put into this service are public.

usethis documentation built on July 9, 2023, 7:23 p.m.