Learn R Programming

openesm (version 0.1.2)

cite.openesm_dataset: Get citation information for dataset

Description

Get citation information for dataset

Usage

# S3 method for openesm_dataset
cite(x, format = "bibtex", ...)

Value

Character string with citation information, returned invisibly.

Arguments

x

An object of class openesm_dataset.

format

Character string specifying citation format. Currently only "bibtex" is supported.

...

Additional arguments (currently unused).

Examples

Run this code
# \donttest{
# Minimal object to demonstrate the method (no API call)
dataset <- structure(
  list(
    dataset_id = "0001",
    metadata = list(
      reference_a = "@article{fried2022, author = {Fried}, year = {2022}}"
    )
  ),
  class = "openesm_dataset"
)
cite(dataset)
# }

Run the code above in your browser using DataLab