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


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


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



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.


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


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()

r-lib/desc documentation built on Sept. 17, 2022, 5:07 p.m.