desc_coerce_authors_at_r: Coerce Author and Maintainer Fields to Authors@R

desc_coerce_authors_at_rR Documentation

Coerce Author and Maintainer Fields to Authors@R

Description

Convert the Author and Maintainer fields to Authors@R, which is necessary for other functions such as desc_get_authors().

Usage

desc_coerce_authors_at_r(file = ".", normalize = FALSE)

Arguments

file

DESCRIPTION file to use. By default the DESCRIPTION file of the current package (i.e. the package the working directory is part of) is used.

normalize

Whether to "normalize" (reorder and reformat) the fields when writing back the result. See desc_normalize().

Details

If the Authors@R field does not exist, desc_coerce_authors_at_r tries to parse the Author and Maintainer fields with utils::as.person() and writes them to the Authors@R field. Note that Author and Maintainer are free-form fields, so parsing them may fail.

See Also

Other Authors@R: desc_add_author_gh(), desc_add_author(), desc_add_me(), desc_add_orcid(), desc_add_role(), desc_change_maintainer(), desc_del_author(), desc_del_role(), desc_get_authors(), desc_get_author(), desc_get_maintainer(), desc_set_authors()


desc documentation built on May 29, 2024, 8:54 a.m.