Skip to content

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.