maintainer: Get Package Maintainer

View source: R/release.R

maintainerR Documentation

Get Package Maintainer

Description

Extracts maintainer name and email from DESCRIPTION.

Usage

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 = 'jane@example.com',",
  "                  role = c('aut','cre'))",
  "Description: Example.",
  "License: GPL-3"
), file.path(pkg, "DESCRIPTION"))

maintainer(pkg)

unlink(pkg, recursive = TRUE)

tinypkgr documentation built on April 22, 2026, 9:07 a.m.