Get Package Maintainer
Description
Extracts maintainer name and email from DESCRIPTION.
Usage
maintainer(path = ".")maintainer(path = ".")
Arguments
path |
Path to package root directory. |
Value
A list with elements 'name' and 'email'.
Examples
# Scaffold a throwaway package in tempdir() and read its maintainer. pkg <- file.path(tempdir(), "mxpkg") dir.create(pkg, showWarnings = FALSE) writeLines(c( "Package: mxpkg", "Title: Example", "Version: 0.0.1", "Authors@R: person('Jane', 'Doe', email = '[email protected]',", " role = c('aut','cre'))", "Description: Example.", "License: GPL-3" ), file.path(pkg, "DESCRIPTION")) maintainer(pkg) unlink(pkg, recursive = TRUE)# Scaffold a throwaway package in tempdir() and read its maintainer. pkg <- file.path(tempdir(), "mxpkg") dir.create(pkg, showWarnings = FALSE) writeLines(c( "Package: mxpkg", "Title: Example", "Version: 0.0.1", "Authors@R: person('Jane', 'Doe', email = '[email protected]',", " role = c('aut','cre'))", "Description: Example.", "License: GPL-3" ), file.path(pkg, "DESCRIPTION")) maintainer(pkg) unlink(pkg, recursive = TRUE)