bibrecord: Create a modern bibrecord-compatible metadata object

View source: R/bibrecord.R

bibrecordR Documentation

Create a modern bibrecord-compatible metadata object

Description

Create a utils::bibentry-compatible object extended with standard Dublin Core and DataCite-compatible fields. This serves as a unified metadata structure for use in both dublincore() and datacite() functions.

Usage

bibrecord(
  title,
  author,
  contributor = NULL,
  publisher = NULL,
  year = NULL,
  date = Sys.Date(),
  identifier = NULL,
  subject = NULL,
  ...
)

Arguments

title

A character string, the dataset title.

author

A list or vector of utils::person objects. Mapped to creator in DataCite and DCTERMS.

contributor

Optional list/vector of utils::person. Contributor roles are merged if repeated.

publisher

Character string or person. The publishing entity.

year

Publication year. Derived from date if not explicitly provided.

date

A character string or Date object.

identifier

Unique identifier (e.g., DOI).

subject

Optional keyword(s) or controlled vocabulary string.

...

Additional fields (e.g., language, format, rights, description).

Value

An object of class bibrecord and bibentry. bibrecord(title = "Gross domestic product, volumes", author = person("Eurosat"), publisher = person("Eurostat"), identifier = "https://doi.org/10.2908/TEINA011", date = as.Date("2025-05-20"))


dataset documentation built on June 8, 2025, 10:15 a.m.